mirror of
https://github.com/iritmaximus/brewery.git
synced 2026-10-12 19:13:49 +03:00
added new table and db seeding
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
class Beer < ApplicationRecord
|
||||
belongs_to :brewery
|
||||
end
|
||||
@@ -1,2 +1,3 @@
|
||||
class Brewery < ApplicationRecord
|
||||
has_many :beers
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user