Initial commit
This commit is contained in:
15
config/db/seeds.rb
Normal file
15
config/db/seeds.rb
Normal file
@@ -0,0 +1,15 @@
|
||||
# This seeds file should create the database records required to run the app.
|
||||
#
|
||||
# The code should be idempotent so that it can be executed at any time.
|
||||
#
|
||||
# To load the seeds, run `hanami db seed`. Seeds are also loaded as part of `hanami db prepare`.
|
||||
|
||||
# For example, if you have appropriate repos available:
|
||||
#
|
||||
# category_repo = Hanami.app["repos.category_repo"]
|
||||
# category_repo.create(title: "General")
|
||||
#
|
||||
# Alternatively, you can use relations directly:
|
||||
#
|
||||
# categories = Hanami.app["relations.categories"]
|
||||
# categories.insert(title: "General")
|
||||
Reference in New Issue
Block a user