diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-07-27 22:32:32 +0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-08-17 18:58:57 +0300 |
commit | 611dab2e522e5e59cf09cd459a31686e65616863 (patch) | |
tree | 85e83a9fef746433ab5cdce643a147bc65f69311 /app/models/board.rb | |
parent | fa576d38bb23e0f2804e3feba959e0c6191dbbb0 (diff) |
Add Board model
Diffstat (limited to 'app/models/board.rb')
-rw-r--r-- | app/models/board.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/models/board.rb b/app/models/board.rb new file mode 100644 index 00000000000..d44df497e78 --- /dev/null +++ b/app/models/board.rb @@ -0,0 +1,7 @@ +class Board < ActiveRecord::Base + belongs_to :project + + has_many :lists, dependent: :destroy + + validates :project, presence: true +end |