lib/ridgepole/diff.rb in ridgepole-0.7.0.beta9 vs lib/ridgepole/diff.rb in ridgepole-0.7.0.beta10
- old
+ new
@@ -400,9 +400,15 @@
def compare_column_attrs(attrs1, attrs2)
attrs1 = attrs1.merge(:options => attrs1.fetch(:options, {}).dup)
attrs2 = attrs2.merge(:options => attrs2.fetch(:options, {}).dup)
normalize_default_proc_options!(attrs1[:options], attrs2[:options])
+
+ if @options[:skip_column_comment_change]
+ attrs1.fetch(:options).delete(:comment)
+ attrs2.fetch(:options).delete(:comment)
+ end
+
attrs1 == attrs2
end
def normalize_default_proc_options!(opts1, opts2)
if opts1[:default].kind_of?(Proc) and opts2[:default].kind_of?(Proc)