Skip to content

Commit

Permalink
Merge pull request #23698 from meinac/add_missing_types_into_ar_model…
Browse files Browse the repository at this point in the history
…_generator_usage

Dynamically show available sql types [ci skip]
  • Loading branch information
Arthur Nogueira Neves committed Oct 28, 2016
2 parents 8377667 + 215857e commit aaf561d
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions railties/lib/rails/generators/rails/model/USAGE
Expand Up @@ -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:

Expand Down

0 comments on commit aaf561d

Please sign in to comment.