# Prevents "PG::UndefinedTable: ERROR:  relation 'configurations' does not exist"
# on server initialization when running existing migrations.
if ActiveRecord::Base.connection.tables.include?(::Configuration.table_name)
  options = Rails.env.development? ? { logging_level: 'INFO' } : {}
  Rails.logger.warn 'Set a value for Balanced\'s API secret with '\
                    '"Configuration[:balanced_api_key_secret] = \'foo_bar\'" and restart the server.'
  Balanced.configure(::Configuration[:balanced_api_key_secret], options)
end

options = Rails.env.development? ? { logging_level: 'INFO' } : {}
Balanced.configure(::Configuration[:balanced_api_key_secret], options)

Remove conditional for configuration from initializer
Remove conditional for configuration from initializer
