<% raise "ENV['DB'] not specified!" unless ENV['DB'] %>

# a bit hackish - tests would require a refactoring instead

mysql2: &mysql2
  adapter: mysql2
  database: activewarehouse_etl_test
  username: root
  encoding: utf8
  local_infile: true
  # the tests would require a rework: disabling casting for now
  cast: false

mysql: &mysql
  adapter: mysql
  database: activewarehouse_etl_test
  username: root
  encoding: utf8

postgresql: &postgresql
  adapter: postgresql
  database: activewarehouse_etl_test
  username: postgres

# TODO - refactor test to avoid using 2 databases maybe?
operational_database:
  <<: *<%= ENV['DB'] %>

data_warehouse:
  <<: *<%= ENV['DB'] %>

etl_execution:
  adapter: mysql
  database: etl_execution

<% raise "ENV['DB'] not specified!" unless ENV['DB'] %>

# a bit hackish - tests would require a refactoring instead

mysql2: &mysql2
  adapter: mysql2
  database: activewarehouse_etl_test
  username: root
  encoding: utf8
  local_infile: true
  # the tests would require a rework: disabling casting for now
  cast: false

postgresql: &postgresql
  adapter: postgresql
  database: activewarehouse_etl_test
  username: postgres

# TODO - refactor test to avoid using 2 databases maybe?
operational_database:
  <<: *<%= ENV['DB'] %>

data_warehouse:
  <<: *<%= ENV['DB'] %>

etl_execution:
  adapter: mysql2
  database: etl_execution

Remove even more "mysql" adapter
Remove even more "mysql" adapter
