1
0
Fork 0
mirror of https://github.com/kaminari/kaminari.git synced 2022-11-09 13:44:37 -05:00

"DEPRECATION WARNING: Passing a string to ActiveRecord::Base.establish_connection for a configuration lookup is deprecated, please pass a symbol (:test) instead."

This commit is contained in:
Akira Matsuda 2014-06-08 22:38:39 +09:00
parent 1c758d3612
commit 434bbd5452

View file

@ -1,3 +1,3 @@
# database
ActiveRecord::Base.configurations = {'test' => {:adapter => 'sqlite3', :database => ':memory:'}}
ActiveRecord::Base.establish_connection('test')
ActiveRecord::Base.establish_connection :test