dwilkie-foreigner 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- data/init.rb +10 -0
- metadata +3 -2
data/init.rb
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
require 'foreigner'
|
2
|
+
|
3
|
+
Foreigner.register 'mysql', 'foreigner/connection_adapters/mysql_adapter'
|
4
|
+
Foreigner.register 'postgresql', 'foreigner/connection_adapters/postgresql_adapter'
|
5
|
+
Foreigner.register 'sqlite3', 'foreigner/connection_adapters/sqlite3_adapter'
|
6
|
+
|
7
|
+
config.after_initialize do
|
8
|
+
Foreigner.load_adapter! ActiveRecord::Base.connection_pool.spec.config[:adapter].downcase
|
9
|
+
end
|
10
|
+
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 5
|
8
|
-
-
|
9
|
-
version: 0.5.
|
8
|
+
- 2
|
9
|
+
version: 0.5.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- David Wilkie
|
@@ -30,6 +30,7 @@ files:
|
|
30
30
|
- MIT-LICENSE
|
31
31
|
- Rakefile
|
32
32
|
- README.textile
|
33
|
+
- init.rb
|
33
34
|
- lib/foreigner.rb
|
34
35
|
- lib/foreigner/schema_dumper.rb
|
35
36
|
- lib/foreigner/connection_adapters/sql_2003.rb
|