Last Updated: February 25, 2016
·
397
· notgrm

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