heroku_rails 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a05e930c2b7ec3d140db4d38156753e51170b9f719c398ac9b8874b1cb5062a
|
4
|
+
data.tar.gz: bfe049e82e80de8fe92dc3cb5efcc6a350f68bbc341fbe148d2c3e981f19d1c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af1de9707ce8205e805f1433542ab84b0d97c44f02f6c6a0a08ebbbbc969e5e99186cf01c25e349f328102a53a69b1b05340a96f4cc662e3e1b66198aafbd9b6
|
7
|
+
data.tar.gz: ae5aa11804454e82848594a69a20bbf8767c225ff47ce91db76f49ce967b1157b90ea58848977a52ecf719ae87cc0dc479656d961e85eb89f680e0b255e36459
|
@@ -2,9 +2,8 @@
|
|
2
2
|
module HerokuRails
|
3
3
|
class DbConfiguration
|
4
4
|
def config
|
5
|
-
|
6
|
-
|
7
|
-
)
|
5
|
+
db_config_from_file = ERB.new(File.read("config/database.yml")).result
|
6
|
+
@config ||= YAML.safe_load(db_config_from_file, [], [], true)
|
8
7
|
end
|
9
8
|
|
10
9
|
def generate_drop_tables_sql
|
@@ -3,7 +3,7 @@
|
|
3
3
|
namespace :db do
|
4
4
|
desc "drop all tables without worrying about concurrent accesses"
|
5
5
|
task drop_all_tables: :environment do
|
6
|
-
require File.expand_path("../../
|
6
|
+
require File.expand_path("../../db_configuration.rb", __FILE__)
|
7
7
|
abort("Don't run this on production") if Rails.env.production?
|
8
8
|
|
9
9
|
db_config = HerokuRails::DbConfiguration.new
|
data/lib/heroku_rails/version.rb
CHANGED