20160727193336_create_lists.rb 455 Bytes
Newer Older
1
# rubocop:disable Migration/Timestamps
2
class CreateLists < ActiveRecord::Migration[4.2]
3 4 5 6
  include Gitlab::Database::MigrationHelpers

  DOWNTIME = false

7 8 9 10
  def change
    create_table :lists do |t|
      t.references :board, index: true, foreign_key: true, null: false
      t.references :label, index: true, foreign_key: true
11 12
      t.integer :list_type, null: false, default: 1
      t.integer :position
13 14 15 16 17

      t.timestamps null: false
    end
  end
end