2016-07-27 15:32:32 -04:00
|
|
|
class CreateLists < ActiveRecord::Migration
|
2016-08-03 12:08:58 -04:00
|
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
|
|
|
|
DOWNTIME = false
|
|
|
|
|
2016-07-27 15:32:32 -04:00
|
|
|
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
|
2016-07-28 18:26:16 -04:00
|
|
|
t.integer :list_type, null: false, default: 1
|
|
|
|
t.integer :position
|
2016-07-27 15:32:32 -04:00
|
|
|
|
|
|
|
t.timestamps null: false
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|