Sha256: 4e1981741dc27a29bb042f49010f7c33d1c3c7da304505a117b19820a84eca9a

Contents?: true

Size: 697 Bytes

Versions: 4

Compression:

Stored size: 697 Bytes

Contents

require 'bundler/setup'
require 'hanami/setup'
require 'hanami/model'
require_relative '../lib/hanami_example'
require_relative '../apps/web/application'

Hanami.configure do
  mount Web::Application, at: '/'

  model do
    ##
    # Database adapter
    #
    # Available options:
    #
    #  * SQL adapter
    #    adapter :sql, 'sqlite://db/hanami_example_development.sqlite3'
    #    adapter :sql, 'postgresql://localhost/hanami_example_development'
    #    adapter :sql, 'mysql://localhost/hanami_example_development'
    #
    adapter :sql, "sqlite://#{__dir__}/../../fixtures.sqlite"

    ##
    # Migrations
    #
    migrations 'db/migrations'
    schema     'db/schema.sql'
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rack-reducer-1.0.1 spec/_hanami_example/config/environment.rb
rack-reducer-1.0.0 spec/_hanami_example/config/environment.rb
rack-reducer-0.1.2 spec/_hanami_example/config/environment.rb
rack-reducer-0.1.1 spec/_hanami_example/config/environment.rb