nondestructive_migrations 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +13 -5
- data/lib/generators/data_migration_install_generator.rb +23 -0
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
ODRlMmE0OGQxMTU5MDk0M2FkNTcwN2EwNDgyZTI5MDhiZGNkN2VkYQ==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
OGQzMjMzOTgwMWJjYmZlNTAwYWM4ZTA5NmQxOWIzOTgzNTYxMjNhMg==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
MTc5ZGE2YjdhMTYyNjdlZGIxNjE0NzA4MGVjODBkZGEyYmE0YjZiMjE5YzFj
|
10
|
+
YTYyMWYwZGQzNGNkMGExMDlhMTY0NDJmMjQyMGVhYmJiYWY4Y2I0ZDE5NTdm
|
11
|
+
YjY4MGRlMDUyZjMwMWM0MGEzZjU4NzkxYTE4ODIyMjcwNTUzOTA=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
NDVkMTUyNDFmY2EwYzk3OTNmYmJlMGE4MzA2ODA4MmQ4YTE1ZGJmY2ExZDUy
|
14
|
+
MzQ3YTkzOWNiYmRiMjExMWIxNDY1YjQyODE5MmVkYzBhYzkwYTM4YjJlNDVi
|
15
|
+
ZGYwZjljYWMyMGE5NjZmMTdhYWQ1YTExZGZlNzM5NDY0Y2RhYTc=
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'rails/generators'
|
2
|
+
require 'rails/generators/migration'
|
3
|
+
require 'rails/generators/active_record'
|
4
|
+
|
5
|
+
|
6
|
+
module DataMigrations
|
7
|
+
class InstallGenerator < Rails::Generators::Base
|
8
|
+
include Rails::Generators::Migration
|
9
|
+
source_root File.expand_path("../templates", __FILE__)
|
10
|
+
|
11
|
+
desc "Creates an initializer and copy files to your application."
|
12
|
+
class_option :orm
|
13
|
+
def self.next_migration_number(path)
|
14
|
+
Time.now.utc.strftime("%Y%m%d%H%M%S")
|
15
|
+
end
|
16
|
+
|
17
|
+
def copy_initializer
|
18
|
+
migration_template "create_data_migrations.rb",
|
19
|
+
"db/migrate/create_data_migrations.rb"
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nondestructive_migrations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Fleetwood-Boldt
|
@@ -17,6 +17,7 @@ executables: []
|
|
17
17
|
extensions: []
|
18
18
|
extra_rdoc_files: []
|
19
19
|
files:
|
20
|
+
- lib/generators/data_migration_install_generator.rb
|
20
21
|
- lib/nondestructive_migrations.rb
|
21
22
|
homepage: https://github.com/jasonfb/nondestructive_migrations
|
22
23
|
licenses:
|
@@ -28,12 +29,12 @@ require_paths:
|
|
28
29
|
- lib
|
29
30
|
required_ruby_version: !ruby/object:Gem::Requirement
|
30
31
|
requirements:
|
31
|
-
- -
|
32
|
+
- - ! '>='
|
32
33
|
- !ruby/object:Gem::Version
|
33
34
|
version: '0'
|
34
35
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
35
36
|
requirements:
|
36
|
-
- -
|
37
|
+
- - ! '>='
|
37
38
|
- !ruby/object:Gem::Version
|
38
39
|
version: '0'
|
39
40
|
requirements: []
|
@@ -43,3 +44,4 @@ signing_key:
|
|
43
44
|
specification_version: 4
|
44
45
|
summary: Nondestructive (data-only) migrations for your Rails app
|
45
46
|
test_files: []
|
47
|
+
has_rdoc:
|