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 +4 -4
- data/lib/schema_comments/connection_adapters.rb +4 -2
- data/lib/schema_comments/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca15d11b57fc96c95101365e16bbef945db00262
|
4
|
+
data.tar.gz: 6b98f0c7eacd1f892325f968ad3aefb53ace4074
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
|
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.
|
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-
|
11
|
+
date: 2016-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|