lib/cassandra_object/migrations.rb in sessionm-cassandra_object-2.3.9 vs lib/cassandra_object/migrations.rb in sessionm-cassandra_object-2.4.0
- old
+ new
@@ -17,10 +17,11 @@
end
end
module InstanceMethods
def schema_version
- Integer(@schema_version || self.class.current_schema_version)
+ version = @schema_version || self.class.current_schema_version
+ version.nil? ? nil : Integer(version)
end
def attribute_will_change!(attribute)
Rails.logger.warn "#{self.class}##{attribute} added/removed/changed and attribute_will_change! not implemented."
end