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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2017-01-27 08:23:07 +0300
committerFatih Acet <acetfatih@gmail.com>2017-02-03 17:02:43 +0300
commit682d213f431ea83f277fc2a362c994ee17c2f44b (patch)
treecfd432bb4fb12a49506bad6a61076fc8788284f3 /app
parent3aabf0c6aa2b76ef4458250ca98876e3f268fe14 (diff)
Remove backlog lists from boards
Diffstat (limited to 'app')
-rw-r--r--app/models/board.rb4
-rw-r--r--app/models/list.rb2
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?