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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/domain_handler.rb +4 -4
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d79a2dff9b9b2e938dd63a0b909a5d85cf01969c941f34500989b3b9b58e08e6
4
- data.tar.gz: 725edf6b3c9f1edef09db3745c68345467d9e57d641d61d99113318583b232d3
3
+ metadata.gz: e18cabc44f27c3504896cd14ea5e066437688412790fa634d2e3f67c840883ef
4
+ data.tar.gz: 0364c47fde4047dc826a97055ab16a157a7301891330c5b3e6cab00064123230
5
5
  SHA512:
6
- metadata.gz: 91e104080c6075c3da6ffa46c18de476bb87a606334710c5449fb5b747dccadb040479f48eb54b9cba2f47e1cb95b8c963b2eaea1735904da327039af5a405f5
7
- data.tar.gz: 8d926133458a87e5fb33be4fea98688362a2702159baf83f1491d6c843d6a79c155cc9e79ac66cf9262268bfb5b364501972adb0cf5b61c7a219aee10f753ff7
6
+ metadata.gz: 1695b656538b4365a9d9b3aaf5e45dc139e1c12fa5ba1f35ffbf939ee9a6dc3385810c707e4da327c41ec7f3f9484cfe8a7d059c04e4d2b64985b3c0cf4c68c9
7
+ data.tar.gz: e2e7677378be03047e1548f1706753aa0d3d266e6a8fc8da5d7c9f33bb2e68caf21f03619e1c57048f23c7aa5fe4046912ec8d36a66de89cb52858a2fbaf34fc
@@ -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::MigrationGenerator.new(['create_domains'])
87
- generator.create_migration_file(migration_file)
88
- puts "Migration file generated: #{migration_file}"
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Domain_Handler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arun Sahu