Domain_Handler 0.0.13 → 0.0.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/domain_handler.rb +4 -4
- 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: e18cabc44f27c3504896cd14ea5e066437688412790fa634d2e3f67c840883ef
|
4
|
+
data.tar.gz: 0364c47fde4047dc826a97055ab16a157a7301891330c5b3e6cab00064123230
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1695b656538b4365a9d9b3aaf5e45dc139e1c12fa5ba1f35ffbf939ee9a6dc3385810c707e4da327c41ec7f3f9484cfe8a7d059c04e4d2b64985b3c0cf4c68c9
|
7
|
+
data.tar.gz: e2e7677378be03047e1548f1706753aa0d3d266e6a8fc8da5d7c9f33bb2e68caf21f03619e1c57048f23c7aa5fe4046912ec8d36a66de89cb52858a2fbaf34fc
|
data/lib/domain_handler.rb
CHANGED
@@ -76,16 +76,16 @@ class DomainHandler
|
|
76
76
|
database: ENV['DB_NAME'],
|
77
77
|
username: ENV['DB_USER'],
|
78
78
|
password: ENV['DB_PWD'],
|
79
|
-
host: 'localhost',
|
79
|
+
host: 'http://localhost:5432',
|
80
80
|
adapter: ENV['DB_ADAPTER']
|
81
81
|
)
|
82
82
|
|
83
83
|
timestamp = Time.now.utc.strftime("%Y%m%d%H%M%S")
|
84
84
|
migration_file = "db/migrate/#{timestamp}_create_domains.rb"
|
85
85
|
# Use the MigrationGenerator class to generate the migration file
|
86
|
-
generator = Rails::Generators
|
87
|
-
generator.
|
88
|
-
|
86
|
+
generator = Rails::Generators.invoke('active_record:migration', ['create_domains'], destination_root: Rails.root)
|
87
|
+
generator.invoke_all
|
88
|
+
generator.write_migration(migration_file)
|
89
89
|
end
|
90
90
|
end
|
91
91
|
|