summaryrefslogtreecommitdiff
path: root/db/migrate/20160727193336_create_lists.rb
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-07-28 19:26:16 -0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-08-17 12:58:57 -0300
commitb07c5f23b8761ae87d29ded1a69b14ae6393443a (patch)
treeec6d9812ae818c282480ef930c971462a203560f /db/migrate/20160727193336_create_lists.rb
parent35420cec0bf511af662e09cbd8664720c58fa187 (diff)
downloadgitlab-ce-b07c5f23b8761ae87d29ded1a69b14ae6393443a.tar.gz
Order board lists by list_type, and position
Diffstat (limited to 'db/migrate/20160727193336_create_lists.rb')
-rw-r--r--db/migrate/20160727193336_create_lists.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/db/migrate/20160727193336_create_lists.rb b/db/migrate/20160727193336_create_lists.rb
index 12bb5605aad..61d501215f2 100644
--- a/db/migrate/20160727193336_create_lists.rb
+++ b/db/migrate/20160727193336_create_lists.rb
@@ -7,8 +7,8 @@ class CreateLists < ActiveRecord::Migration
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.integer :list_type, null: false, default: 1
+ t.integer :position
t.timestamps null: false
end