Sha256: 84f45c43fbf0af00e04a495ded2321741c6c8c76a43cf4839bd5507098f951cc

Contents?: true

Size: 1022 Bytes

Versions: 4

Compression:

Stored size: 1022 Bytes

Contents

<%- case ENV["DB"] when "mysql" -%>
default: &default
  adapter: mysql2
  encoding: utf8

development:
  <<: *default
  database: archangel_<%= options[:lib_name] %>_development

test:
  <<: *default
  database: archangel_<%= options[:lib_name] %>_test

production:
  <<: *default
  database: archangel_<%= options[:lib_name] %>_production
<%- when "postgres" -%>
default: &default
  adapter: postgresql
  username: postgres

development:
  <<: *default
  database: archangel_<%= options[:lib_name] %>_development

test:
  <<: *default
  database: archangel_<%= options[:lib_name] %>_test

production:
  <<: *default
  database: archangel_<%= options[:lib_name] %>_production
<%- else -%>
default: &default
  adapter: sqlite3

development:
  <<: *default
  database: db/archangel_<%= options[:lib_name] %>_development.sqlite3

test:
  <<: *default
  database: db/archangel_<%= options[:lib_name] %>_test.sqlite3

production:
  <<: *default
  database: db/archangel_<%= options[:lib_name] %>_production.sqlite3
<%- end -%>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
archangel-0.0.5 lib/generators/archangel/dummy/templates/config/database.yml
archangel-0.0.4 lib/generators/archangel/dummy/templates/config/database.yml
archangel-0.0.3 lib/generators/archangel/dummy/templates/config/database.yml
archangel-0.0.2 lib/generators/archangel/dummy/templates/config/database.yml