Revert "Merge pull request #23698 from meinac/add_missing_types_into_ar_model_generator_usage"

This reverts commit aaf561d26c, reversing
changes made to 83776676e5.

Reason: It is not a good idea to connect to the database on generators
This commit is contained in:
Rafael Mendonça França 2016-10-28 21:21:24 -02:00
parent dcb364ec8e
commit a8b996a0ee
No known key found for this signature in database
GPG Key ID: FC23B6D0F1EEE948
1 changed files with 11 additions and 1 deletions

View File

@ -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: