Add dictionary ingest and view
Dictionary json ingest to database, view populated with database contents
This commit is contained in:
3
app/models/definition.rb
Normal file
3
app/models/definition.rb
Normal file
@@ -0,0 +1,3 @@
|
||||
class Definition < ApplicationRecord
|
||||
belongs_to :word
|
||||
end
|
3
app/models/word.rb
Normal file
3
app/models/word.rb
Normal file
@@ -0,0 +1,3 @@
|
||||
class Word < ApplicationRecord
|
||||
has_many :definitions
|
||||
end
|
Reference in New Issue
Block a user