Domain_Handler 0.0.10 → 0.0.12
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 +6 -7
- 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: f1590f79e52c6795328d5f8111decd02576944158dc71484948fce3203cbda54
|
4
|
+
data.tar.gz: 04560badd1ae39e7200795b4e5785638b619913b7c8a163a66021754b1102f87
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94cb91922cb0e0119daf17eaaecc47209ade26f66f0093259f39fd7f3a9bb2212ac79ff1b109548af493f74a28a84ef459044f58f391d5a4260312da8f534466
|
7
|
+
data.tar.gz: 27831e5b5836910a158c529273926b125031ad65a311b1590a39411ec7d5e595cbada5e9547fcd8614a7a1715375175b6d1929955e4994dc3c2f598ba0546510
|
data/lib/domain_handler.rb
CHANGED
@@ -80,15 +80,14 @@ class DomainHandler
|
|
80
80
|
adapter: ENV['DB_ADAPTER']
|
81
81
|
)
|
82
82
|
|
83
|
-
# Define your migration class
|
84
|
-
migration = CreateDomains.new
|
85
|
-
|
86
|
-
# Create an instance of your migration class
|
87
|
-
migration = CreateDomains.new
|
88
|
-
# Generate the migration file
|
89
83
|
timestamp = Time.now.utc.strftime("%Y%m%d%H%M%S")
|
90
84
|
migration_file = "db/migrate/#{timestamp}_create_domains.rb"
|
91
|
-
|
85
|
+
|
86
|
+
# Use the MigrationGenerator class to generate the migration file
|
87
|
+
generator = Rails::Generators::MigrationGenerator.new(['create_domains'])
|
88
|
+
generator.create_migration_file(migration_file)
|
89
|
+
|
90
|
+
puts "Migration file generated: #{migration_file}"
|
92
91
|
end
|
93
92
|
end
|
94
93
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arun Sahu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-06-
|
11
|
+
date: 2023-06-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|