diff options
author | Arthur Nogueira Neves <github@arthurnn.com> | 2016-10-28 17:09:28 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-28 17:09:28 -0400 |
commit | aaf561d26cf9a879ff40190b625155015c6225da (patch) | |
tree | 70bb01732869ce9e2dc3006347ebf1736a2c1423 /railties | |
parent | 83776676e54b387fc52081ff31cfd7710bae9e03 (diff) | |
parent | 215857e0c185530d526dc91cbc3bbaff9c353746 (diff) | |
download | rails-aaf561d26cf9a879ff40190b625155015c6225da.tar.gz rails-aaf561d26cf9a879ff40190b625155015c6225da.tar.bz2 rails-aaf561d26cf9a879ff40190b625155015c6225da.zip |
Merge pull request #23698 from meinac/add_missing_types_into_ar_model_generator_usage
Dynamically show available sql types [ci skip]
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/generators/rails/model/USAGE | 12 |
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: |