added new table and db seeding

This commit is contained in:
iritmaximus
2023-05-29 22:36:43 +03:00
parent 920d7182df
commit d5a0c6b809
21 changed files with 336 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
class Beer < ApplicationRecord
belongs_to :brewery
end
+1
View File
@@ -1,2 +1,3 @@
class Brewery < ApplicationRecord
has_many :beers
end