about summary refs log tree commit diff
path: root/db/migrate/20171114231651_create_lists.rb
blob: 21285e9016dd674dc8fc78da98f004435d2d6c25 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
class CreateLists < ActiveRecord::Migration[5.1]
  def change
    create_table :lists do |t|
      t.references :account, foreign_key: { on_delete: :cascade }
      t.string :title, null: false, default: ''

      t.timestamps
    end
  end
end