From a8b996a0eee9aae455c5f82fac0baf24edb3a9c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Fri, 28 Oct 2016 21:21:24 -0200 Subject: 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 --- railties/lib/rails/generators/rails/model/USAGE | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'railties/lib') 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: -- cgit v1.2.3