summaryrefslogtreecommitdiff
path: root/db/migrate/20160727193336_create_lists.rb
blob: 4591c9a120f9a411c50f38e452c359c806777812 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# rubocop:disable Migration/Timestamps
class CreateLists < ActiveRecord::Migration[4.2]
  include Gitlab::Database::MigrationHelpers

  DOWNTIME = false

  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

      t.timestamps null: false
    end
  end
end