Generate initial models
This commit is contained in:
commit
3e1e5618ca
89 changed files with 2706 additions and 0 deletions
3
app/models/answer.rb
Normal file
3
app/models/answer.rb
Normal file
|
@ -0,0 +1,3 @@
|
|||
class Answer < ApplicationRecord
|
||||
belongs_to :question
|
||||
end
|
3
app/models/application_record.rb
Normal file
3
app/models/application_record.rb
Normal file
|
@ -0,0 +1,3 @@
|
|||
class ApplicationRecord < ActiveRecord::Base
|
||||
primary_abstract_class
|
||||
end
|
0
app/models/concerns/.keep
Normal file
0
app/models/concerns/.keep
Normal file
3
app/models/question.rb
Normal file
3
app/models/question.rb
Normal file
|
@ -0,0 +1,3 @@
|
|||
class Question < ApplicationRecord
|
||||
belongs_to :section
|
||||
end
|
2
app/models/section.rb
Normal file
2
app/models/section.rb
Normal file
|
@ -0,0 +1,2 @@
|
|||
class Section < ApplicationRecord
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue