diff options
author | Bryan Helmkamp <bryan@brynary.com> | 2009-05-16 21:13:32 -0400 |
---|---|---|
committer | Bryan Helmkamp <bryan@brynary.com> | 2009-05-17 13:17:07 -0400 |
commit | 49d119ae84bbb7cd180ca855cf48997dc731554c (patch) | |
tree | 3bae397d3e2b5ee76bd89a87ccbf421d814fec74 /spec/connections/mysql_connection.rb | |
parent | 4096d192a1e7cdf0115f5a4cf33d102b176cb8cd (diff) | |
download | rails-49d119ae84bbb7cd180ca855cf48997dc731554c.tar.gz rails-49d119ae84bbb7cd180ca855cf48997dc731554c.tar.bz2 rails-49d119ae84bbb7cd180ca855cf48997dc731554c.zip |
Adding spec:mysql and spec:sqlite3 tasks
Diffstat (limited to 'spec/connections/mysql_connection.rb')
-rw-r--r-- | spec/connections/mysql_connection.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/connections/mysql_connection.rb b/spec/connections/mysql_connection.rb new file mode 100644 index 0000000000..789628b95d --- /dev/null +++ b/spec/connections/mysql_connection.rb @@ -0,0 +1,13 @@ +require "activerecord" +puts "Using native MySQL" + +ActiveRecord::Base.configurations = { + 'unit' => { + :adapter => 'mysql', + :username => 'rails', + :encoding => 'utf8', + :database => 'arel_unit', + } +} + +ActiveRecord::Base.establish_connection 'unit'
\ No newline at end of file |