Domain_Handler 0.0.8 → 0.0.10

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: b77355b3a97494ea583ad87fd338ad2cf71539c46b72ff3a6447fa232c776b93
4
- data.tar.gz: 01e061ca52adb3da52621ad20f3fcac8276b9776d88a1ab4a2a0de59aef5cb95
3
+ metadata.gz: 4e7d25e1225ac0f710f63ea1dcd322b537b3370b9f44fe2de212dfc32744dbd3
4
+ data.tar.gz: a77a1e5608348ad9e5d01e778c7250e3efa1bceb4172a8ff2b0fa8c4f2e30f09
5
5
  SHA512:
6
- metadata.gz: 292f2970a449161cbe65042ca7e23b5d187ed310b632e628b77f45aed7c0f1f2aedcd4134a29a2126665a5b32ec7d618cc6ae7e9538af5e7e8b8eb5837295aa4
7
- data.tar.gz: 56dfec60ddd14db2dd95a150179a12d4b9a82875d06e243f65d3f42e34fe2fd085796c769c7e27e149f20605d63137c5517820b98c504cac4c386b1368e403c4
6
+ metadata.gz: 42d0117a83c16318cc0dfecfd1cfb88149331b07f6a001107a446a13188d103ad559c0a4effd8afdfdb336d31c14f420c7d644acf41a7e2ed3fa207a2ebfac3a
7
+ data.tar.gz: 648bccd863537d5d0ae6a0af7c98f263091f49d109eb6d6f1fb7bcc79a790c88610164c469450dc5ccd83e016b5272850b752cf9b6dc3dd2eef555ae107ef40a
@@ -73,11 +73,11 @@ class DomainHandler
73
73
  require 'active_record/migration'
74
74
  # Connect to your database
75
75
  ActiveRecord::Base.establish_connection(
76
- adapter: ENV['DB_ADAPTER']
77
76
  database: ENV['DB_NAME'],
78
77
  username: ENV['DB_USER'],
79
78
  password: ENV['DB_PWD'],
80
- host: ENV['HOST_DOMAIN_URL']
79
+ host: ENV['HOST_DOMAIN_URL'],
80
+ adapter: ENV['DB_ADAPTER']
81
81
  )
82
82
 
83
83
  # Define your migration class
@@ -87,8 +87,8 @@ class DomainHandler
87
87
  migration = CreateDomains.new
88
88
  # Generate the migration file
89
89
  timestamp = Time.now.utc.strftime("%Y%m%d%H%M%S")
90
- migration_file = "db/migrate/#{timestamp}_create_your_table.rb"
91
- migration.create_migration_file(migration_file)
90
+ migration_file = "db/migrate/#{timestamp}_create_domains.rb"
91
+ migration.create_migration(migration_file, 'create_domains')
92
92
  end
93
93
  end
94
94
 
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.8
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arun Sahu