strong_migrations 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +1 -1
- data/lib/strong_migrations/migration.rb +3 -1
- data/lib/strong_migrations/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c10a3713f5640ee7249063d3df7236d263cb5a71
|
4
|
+
data.tar.gz: df50932fcd76d06f830bafee7a186ac6a5d14c13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 04b1c12a2dd58c459987a2d3c797cfc225500cb87ece9758b779d049fc62600c1a9b041d35b3e87a0d11000ab05517114ab8960a5003063ad59d7004c5707ba6
|
7
|
+
data.tar.gz: 7ac14054e5d67e60bfb75582c164ba9b3360a4a59f135986a665a7c29da3b39feffb0ee40147f142ab6850cf541f117943499ff0748c11ace7474adde5816185
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -149,7 +149,7 @@ Only dump the schema when adding a new migration. If you use Git, create an init
|
|
149
149
|
|
150
150
|
```ruby
|
151
151
|
ActiveRecord::Base.dump_schema_after_migration = Rails.env.development? &&
|
152
|
-
|
152
|
+
`git status db/migrate/ --porcelain`.present?
|
153
153
|
```
|
154
154
|
|
155
155
|
## Schema Sanity
|
@@ -32,7 +32,7 @@ module StrongMigrations
|
|
32
32
|
raise_error :add_index_columns
|
33
33
|
end
|
34
34
|
options = args[2]
|
35
|
-
if %w(PostgreSQL PostGIS).include?(connection.adapter_name) && !(options && options[:algorithm] == :concurrently)
|
35
|
+
if %w(PostgreSQL PostGIS).include?(connection.adapter_name) && !(options && options[:algorithm] == :concurrently) && !@new_tables.to_a.include?(args[0].to_s)
|
36
36
|
raise_error :add_index
|
37
37
|
end
|
38
38
|
when :add_column
|
@@ -42,6 +42,8 @@ module StrongMigrations
|
|
42
42
|
raise_error :add_column_json if type.to_s == "json"
|
43
43
|
when :change_column
|
44
44
|
raise_error :change_column
|
45
|
+
when :create_table
|
46
|
+
(@new_tables ||= []) << args[0].to_s
|
45
47
|
end
|
46
48
|
end
|
47
49
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: strong_migrations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bob Remeika
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2017-03-24 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activerecord
|
@@ -123,9 +123,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
123
123
|
version: '0'
|
124
124
|
requirements: []
|
125
125
|
rubyforge_project:
|
126
|
-
rubygems_version: 2.6.
|
126
|
+
rubygems_version: 2.6.8
|
127
127
|
signing_key:
|
128
128
|
specification_version: 4
|
129
129
|
summary: Catch unsafe migrations at dev time
|
130
130
|
test_files: []
|
131
|
-
has_rdoc:
|