1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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

View file

@ -35,7 +35,17 @@ Available field types:
type. If no type is specified the string type will be used by default. type. If no type is specified the string type will be used by default.
You can use the following types: 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: You can also consider `references` as a kind of type. For instance, if you run: