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