diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2017-01-27 03:23:07 -0200 |
---|---|---|
committer | Fatih Acet <acetfatih@gmail.com> | 2017-02-03 17:02:43 +0300 |
commit | 682d213f431ea83f277fc2a362c994ee17c2f44b (patch) | |
tree | cfd432bb4fb12a49506bad6a61076fc8788284f3 /app/models | |
parent | 3aabf0c6aa2b76ef4458250ca98876e3f268fe14 (diff) | |
download | gitlab-ce-682d213f431ea83f277fc2a362c994ee17c2f44b.tar.gz |
Remove backlog lists from boards
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/board.rb | 4 | ||||
-rw-r--r-- | app/models/list.rb | 2 |
2 files changed, 1 insertions, 5 deletions
diff --git a/app/models/board.rb b/app/models/board.rb index c56422914a9..2780acc67c0 100644 --- a/app/models/board.rb +++ b/app/models/board.rb @@ -5,10 +5,6 @@ class Board < ActiveRecord::Base validates :project, presence: true - def backlog_list - lists.merge(List.backlog).take - end - def done_list lists.merge(List.done).take end diff --git a/app/models/list.rb b/app/models/list.rb index 065d75bd1dc..1e5da7f4dd4 100644 --- a/app/models/list.rb +++ b/app/models/list.rb @@ -2,7 +2,7 @@ class List < ActiveRecord::Base belongs_to :board belongs_to :label - enum list_type: { backlog: 0, label: 1, done: 2 } + enum list_type: { label: 1, done: 2 } validates :board, :list_type, presence: true validates :label, :position, presence: true, if: :label? |