]> git.openstreetmap.org Git - rails.git/blob - vendor/plugins/file_column/test/connection.rb
a2f28baca98e0b29ed126e99f30e5c2c92579d23
[rails.git] / vendor / plugins / file_column / test / connection.rb
1 print "Using native MySQL\n"
2 require 'logger'
3
4 ActiveRecord::Base.logger = Logger.new("debug.log")
5
6 db = 'file_column_test'
7
8 ActiveRecord::Base.establish_connection(
9   :adapter  => "mysql",
10   :host     => "localhost",
11   :username => "rails",
12   :password => "",
13   :database => db,
14   :socket => "/var/run/mysqld/mysqld.sock"
15 )
16
17 load File.dirname(__FILE__) + "/fixtures/schema.rb"