lib/rubocop/cop/rails/not_null_column.rb in rubocop-rails-2.19.1 vs lib/rubocop/cop/rails/not_null_column.rb in rubocop-rails-2.20.0
- old
+ new
@@ -43,10 +43,10 @@
private
def check_add_column(node)
add_not_null_column?(node) do |type, pairs|
- return if type.value == :virtual || type.value == 'virtual'
+ return if type.respond_to?(:value) && (type.value == :virtual || type.value == 'virtual')
check_pairs(pairs)
end
end