Domain_Handler 0.0.16 → 0.0.18

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 -5
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0ee540d8829e90f5e28a6917814d4a65b3a3c9c314da41e954c884a712b8f36a
4
- data.tar.gz: d69547f34418e1d857e26c28873779ae791a61276564ce4b667be001122a3c12
3
+ metadata.gz: c75b8f5785bb4b279b979b4a9fe3675dad155b959ebe5de791ada40a7b192513
4
+ data.tar.gz: 751dac8c75651374e8764a698e3c3b60cd5ab58c6c68920c4598eb3cdf959e2d
5
5
  SHA512:
6
- metadata.gz: 5959e0dfbb15b79924e83fb73d8a00430da87683ebf28952382677c374b568aa04bac8e4412caa567d182c84b5ac3d02823c0792e7ccc8fcc99760add609677f
7
- data.tar.gz: ce2dff122fa0d4a3ce0b989ad44ac1ed3d1a5928850f45aa2c790788d09d431486c5ac33860cad4f4e3481a71573beeb4025d59a1be503dbcc53df69b7d202cb
6
+ metadata.gz: 37d2b0091a16fdf0f242b49db943c23c9e9fa995711add16c8e8467ed2641cdff2550abd7c1d31ba9ab0f460e3e0b932bd23cbf6f44cc8fc723c4883ddc23722
7
+ data.tar.gz: 570f5850cadd4cd2a8bc263006f2dfcee0467bbf3f15059205cac2d9afbaf37f9671bb55738311fd59b43bc7f5447121c243a275997ca2ea315693bd147e7cb1
@@ -82,12 +82,11 @@ class DomainHandler
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
- # Use the MigrationGenerator class to generate the migration file
86
- Rails::Generators.invoke('active_record:migration', ['create_domains'], behavior: :invoke, destination_root: Rails.root)
87
85
 
88
- # generator = Rails::Generators.invoke('active_record:migration', ['create_domains'], destination_root: Rails.root)
89
- # generator.invoke_all
90
- # generator.write_migration(migration_file)
86
+ migration_context = ActiveRecord::MigrationContext.new(migration_file, CreateDomains)
87
+
88
+ # Generate the migration file using the create_table method
89
+ migration_context.migrate(target_version = nil)
91
90
  end
92
91
  end
93
92
 
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.16
4
+ version: 0.0.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arun Sahu
@@ -31,7 +31,7 @@ extensions: []
31
31
  extra_rdoc_files: []
32
32
  files:
33
33
  - lib/domain_handler.rb
34
- homepage: https://rubygems.org/gems/hola
34
+ homepage: https://rubygems.org
35
35
  licenses:
36
36
  - MIT
37
37
  metadata: {}