diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-07-29 01:26:16 +0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-08-17 18:58:57 +0300 |
commit | b07c5f23b8761ae87d29ded1a69b14ae6393443a (patch) | |
tree | ec6d9812ae818c282480ef930c971462a203560f /db | |
parent | 35420cec0bf511af662e09cbd8664720c58fa187 (diff) |
Order board lists by list_type, and position
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20160727193336_create_lists.rb | 4 | ||||
-rw-r--r-- | db/schema.rb | 4 |
2 files changed, 4 insertions, 4 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 diff --git a/db/schema.rb b/db/schema.rb index aec00136ff8..873dfa81702 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -544,8 +544,8 @@ ActiveRecord::Schema.define(version: 20160810142633) do create_table "lists", force: :cascade do |t| t.integer "board_id", null: false t.integer "label_id" - t.integer "list_type", default: 0, null: false - t.integer "position", null: false + t.integer "list_type", default: 1, null: false + t.integer "position" t.datetime "created_at", null: false t.datetime "updated_at", null: false end |