20171114231651_create_lists.rb 276 B

123456789101112
  1. # frozen_string_literal: true
  2. class CreateLists < ActiveRecord::Migration[5.2]
  3. def change
  4. create_table :lists do |t|
  5. t.references :account, foreign_key: { on_delete: :cascade }
  6. t.string :title, null: false, default: ''
  7. t.timestamps
  8. end
  9. end
  10. end