diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-10-28 21:21:24 -0200 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-10-28 21:21:24 -0200 |
commit | a8b996a0eee9aae455c5f82fac0baf24edb3a9c1 (patch) | |
tree | 4c28499e0bede2de855be3306192861d983d1cf6 /railties | |
parent | dcb364ec8ec89c4c70c8de1965a3d3d6b45de072 (diff) | |
download | rails-a8b996a0eee9aae455c5f82fac0baf24edb3a9c1.tar.gz rails-a8b996a0eee9aae455c5f82fac0baf24edb3a9c1.tar.bz2 rails-a8b996a0eee9aae455c5f82fac0baf24edb3a9c1.zip |
Revert "Merge pull request #23698 from meinac/add_missing_types_into_ar_model_generator_usage"
This reverts commit aaf561d26cf9a879ff40190b625155015c6225da, reversing
changes made to 83776676e54b387fc52081ff31cfd7710bae9e03.
Reason: It is not a good idea to connect to the database on generators
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/generators/rails/model/USAGE | 12 |
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: |