diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-10-05 11:42:37 -0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-10-11 11:39:04 -0300 |
commit | fb5a4202062d07d2dbca544f4cfb475a65411716 (patch) | |
tree | c2acd6ea42dc1604346b30eac91362787c17df60 /app | |
parent | 38978fa53ffb7b263f987cb1fca84722c83b2fec (diff) | |
download | gitlab-ce-fb5a4202062d07d2dbca544f4cfb475a65411716.tar.gz |
Allow projects to have many boards
Diffstat (limited to 'app')
-rw-r--r-- | app/models/project.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/models/project.rb b/app/models/project.rb index 74d54e69648..795a456b094 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -65,8 +65,7 @@ class Project < ActiveRecord::Base belongs_to :namespace has_one :last_event, -> {order 'events.created_at DESC'}, class_name: 'Event', foreign_key: 'project_id' - - has_one :board, dependent: :destroy + has_many :boards, dependent: :destroy # Project services has_many :services |