BigW Consortium Gitlab

20160727193336_create_lists.rb 411 Bytes
Newer Older
1
class CreateLists < ActiveRecord::Migration
2 3 4 5
  include Gitlab::Database::MigrationHelpers

  DOWNTIME = false

6 7 8 9
  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
10 11
      t.integer :list_type, null: false, default: 1
      t.integer :position
12 13 14 15 16

      t.timestamps null: false
    end
  end
end