gitlab-org--gitlab-foss/db/migrate/20160727193336_create_lists.rb

17 lines
411 B
Ruby
Raw Normal View History

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
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