Sha256: 1f322bcd77c10a45546f66bf6e9c7c1b9414fb9bb299b0e3047786ca3677e762

Contents?: true

Size: 552 Bytes

Versions: 3

Compression:

Stored size: 552 Bytes

Contents

# 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")

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hanami-cli-2.2.1 lib/hanami/cli/generators/gem/app/seeds.erb
hanami-cli-2.2.0 lib/hanami/cli/generators/gem/app/seeds.erb
hanami-cli-2.2.0.rc1 lib/hanami/cli/generators/gem/app/seeds.erb