load_remote_db 0.1.13 → 0.1.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/load_remote_db/version.rb +1 -1
- data/lib/tasks/load_remote_db.rake +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 878913b775795b712c7743355243e1c7db3739133b0dafae137cd3e3990c8705
|
4
|
+
data.tar.gz: 96fb5f43ec2c9de1bc3d4043c1ba035d08a485242fca194445aec16ec68d7c7f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ab6d4dd3c264ded79cea95e9d1649eb4964a2e86f5d9fe6346f27619b607f10916aad3de39ba0aa2689136de19ae8460b864982b4db97cdb462f4720304fde6
|
7
|
+
data.tar.gz: e2a9e424c91787573fd616fb55bab84e6d1904371d1fc3c6a2767d947fa3569c6d811ef3cc9f6703141a66aa89354a6a03178be7f320faea5c2e0e405f940736
|
@@ -18,7 +18,7 @@ class RemoteDbLoader
|
|
18
18
|
|
19
19
|
database_yml =
|
20
20
|
"#{Rails.root}/config/database.yml"
|
21
|
-
development_db = YAML.load_file(database_yml)['development']
|
21
|
+
development_db = YAML.load_file(database_yml)[ENV['RAILS_ENV'] || 'development']
|
22
22
|
|
23
23
|
username = development_db['username'] || 'root'
|
24
24
|
password = development_db['password']
|