aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--railties/lib/rails/generators/rails/model/USAGE12
1 files changed, 1 insertions, 11 deletions
diff --git a/railties/lib/rails/generators/rails/model/USAGE b/railties/lib/rails/generators/rails/model/USAGE
index 025bcf4774..c95e523fb5 100644
--- a/railties/lib/rails/generators/rails/model/USAGE
+++ b/railties/lib/rails/generators/rails/model/USAGE
@@ -35,17 +35,7 @@ Available field types:
type. If no type is specified the string type will be used by default.
You can use the following types:
- integer
- primary_key
- decimal
- float
- boolean
- binary
- string
- text
- date
- time
- datetime
+ <%= ActiveRecord::Base.connection.native_database_types.keys.join("\n\t") %>
You can also consider `references` as a kind of type. For instance, if you run: