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 commitaaf561d26c
, reversing changes made to83776676e5
. Reason: It is not a good idea to connect to the database on generators
This commit is contained in:
parent
dcb364ec8e
commit
a8b996a0ee
1 changed files with 11 additions and 1 deletions
|
@ -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:
|
||||
|
||||
|
|
Loading…
Reference in a new issue