Skip to content
Snippets Groups Projects
Commit b0ddefe9 authored by Alex Reisner's avatar Alex Reisner
Browse files

Fix deprecation warning.

DEPRECATION WARNING: Passing a string to
ActiveRecord::Base.establish_connection for a configuration lookup is
deprecated, please pass a symbol (:sqlite) instead.
parent 3b30e69c
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,7 @@ if configs.keys.include? ENV['DB']
require 'sqlite_ext'
SqliteExt.register_ruby_math
end
ActiveRecord::Base.establish_connection(db_name)
ActiveRecord::Base.establish_connection(db_name.to_sym)
ActiveRecord::Base.default_timezone = :utc
ActiveRecord::Migrator.migrate('test/db/migrate', nil)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment