From 215857e0c185530d526dc91cbc3bbaff9c353746 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mehmet=20Emin=20=C4=B0NA=C3=87?= Date: Tue, 16 Feb 2016 00:31:39 +0200 Subject: Dynamically show available sql types [ci skip] Dynamically list available sql data types based on current database adapter. --- railties/lib/rails/generators/rails/model/USAGE | 12 +----------- 1 file changed, 1 insertion(+), 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: -- cgit v1.2.3