Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20160727193336_create_lists.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e962353986c90076f822f7a874809b7a3ec81d66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
class CreateLists < ActiveRecord::Migration
  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: 0
      t.integer :position, null: false

      t.timestamps null: false
    end
  end
end