summaryrefslogtreecommitdiff
path: root/db/migrate/20160727193336_create_lists.rb
blob: 3fd95dc8cfc41ed0dae9edbe843c0f8a19b80961 (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
  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