lib/hanami/generators/application/app/lib/app_name.rb.tt in hanami-0.8.0 vs lib/hanami/generators/application/app/lib/app_name.rb.tt in hanami-0.9.0

- old
+ new

@@ -5,44 +5,23 @@ Hanami::Model.configure do # Database adapter # # Available options: # - # * File System adapter - # adapter type: :file_system, uri: 'file:///db/bookshelf_development' - # - # * Memory adapter - # adapter type: :memory, uri: 'memory://localhost/<%= config[:app_name] %>_development' - # # * SQL adapter - # adapter type: :sql, uri: 'sqlite://db/<%= config[:app_name] %>_development.sqlite3' - # adapter type: :sql, uri: 'postgres://localhost/<%= config[:app_name] %>_development' - # adapter type: :sql, uri: 'mysql://localhost/<%= config[:app_name] %>_development' + # adapter :sql, 'sqlite://db/<%= config[:app_name] %>_development.sqlite3' + # adapter :sql, 'postgres://localhost/<%= config[:app_name] %>_development' + # adapter :sql, 'mysql://localhost/<%= config[:app_name] %>_development' # - adapter type: :<%= config[:database_config][:type] %>, uri: ENV['DATABASE_URL'] + adapter :<%= config[:database_config][:type] %>, ENV['DATABASE_URL'] <%- if config[:database_config][:type] == :sql -%> ## # Migrations # migrations 'db/migrations' schema 'db/schema.sql' - <%- end -%> - ## - # Database mapping - # - # Intended for specifying application wide mappings. - # - mapping do - # collection :users do - # entity User - # repository UserRepository - # - # attribute :id, Integer - # attribute :name, String - # end - end end.load! Hanami::Mailer.configure do root "#{ __dir__ }/<%= config[:app_name] %>/mailers"