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.
- checksums.yaml +4 -4
- data/lib/domain_handler.rb +4 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c75b8f5785bb4b279b979b4a9fe3675dad155b959ebe5de791ada40a7b192513
|
4
|
+
data.tar.gz: 751dac8c75651374e8764a698e3c3b60cd5ab58c6c68920c4598eb3cdf959e2d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37d2b0091a16fdf0f242b49db943c23c9e9fa995711add16c8e8467ed2641cdff2550abd7c1d31ba9ab0f460e3e0b932bd23cbf6f44cc8fc723c4883ddc23722
|
7
|
+
data.tar.gz: 570f5850cadd4cd2a8bc263006f2dfcee0467bbf3f15059205cac2d9afbaf37f9671bb55738311fd59b43bc7f5447121c243a275997ca2ea315693bd147e7cb1
|
data/lib/domain_handler.rb
CHANGED
@@ -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
|
-
|
89
|
-
|
90
|
-
#
|
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.
|
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
|
34
|
+
homepage: https://rubygems.org
|
35
35
|
licenses:
|
36
36
|
- MIT
|
37
37
|
metadata: {}
|