Basic feature implemented, very basic poc
This commit is contained in:
parent
216089a3e7
commit
48c0067076
118 changed files with 2113 additions and 20 deletions
6
app/models/checklist.rb
Normal file
6
app/models/checklist.rb
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
class Checklist < ApplicationRecord
|
||||
has_many :checklist_entries, -> { order(position: :asc) }, dependent: :destroy, inverse_of: :checklist
|
||||
has_many :checks, through: :checklist_entries
|
||||
|
||||
accepts_nested_attributes_for :checklist_entries
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue