schema_comments 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dfd122cb2fedd33909167773b879f943f97c74fb
4
- data.tar.gz: 880e604fc10669a33c3408c936a052c1d54d86fa
3
+ metadata.gz: ca15d11b57fc96c95101365e16bbef945db00262
4
+ data.tar.gz: 6b98f0c7eacd1f892325f968ad3aefb53ace4074
5
5
  SHA512:
6
- metadata.gz: e03c5f4bd9b55bc4aa9e4395eb809da23999739ce10676ad67d0c9ad3d03c6c2dacf0244b6722572cd2128d1d6f572da85f7d47d21995651bed87530f4b1110b
7
- data.tar.gz: 1210f6fa4a9eccfb61ebfcc7065d9e0265d0d6d67e4b4f7214d9030fe2102562e727d63360c2e4310a245fe53a3fe804b8ba20d2f249330526002cd175f3fb12
6
+ metadata.gz: d4794912020379a87d00c23ad61ef3036642021afa89ab429d979dad0152e07c4897430f44afb215b94a123bfa273ee3af5ae06623ebc68e7c32c4e0ed4802b4
7
+ data.tar.gz: 974e5ccfc95fe35a62970698c7536ba693606b449cda74ceb0371d1f300f3b74ffd811e2e8d6383cf20963b124739e5cb1cee77632eda4f8ca1c8ed953d6aecc
@@ -147,9 +147,11 @@ module SchemaComments
147
147
  @ignore_drop_table = false
148
148
  end
149
149
 
150
- def rename_column(table_name, column_name, new_column_name)
150
+ def rename_column(table_name, column_name, new_column_name, options = {})
151
+ comment = options.delete(:comment)
151
152
  result = super(table_name, column_name, new_column_name)
152
- comment = update_schema_comments_column_name(table_name, column_name, new_column_name)
153
+ update_schema_comments_column_name(table_name, column_name, new_column_name)
154
+ column_comment(table_name, new_column_name, comment) if comment
153
155
  result
154
156
  end
155
157
 
@@ -1,3 +1,3 @@
1
1
  module SchemaComments
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: schema_comments
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - akm
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-04-12 00:00:00.000000000 Z
11
+ date: 2016-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport