Active Record migration types
Rails guides doesn't have a dedicated section resuming all types you can use inside your migration. Here the list of all non-database specific types, avoiding you to look inside api documentation
- :binary
- :boolean
- :date
- :datetime
- :decimal
- :float
- :integer
- :primary_key
- :references
- :string
- :text
- :time
- :timestamp
Written by Jeremy Bertrand
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Rails
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#