lib/cassandra_object/migrations.rb in sessionm-cassandra_object-2.2.47 vs lib/cassandra_object/migrations.rb in sessionm-cassandra_object-2.2.48
- old
+ new
@@ -19,9 +19,13 @@
module InstanceMethods
def schema_version
Integer(@schema_version || self.class.current_schema_version)
end
+
+ def attribute_will_change!(attribute)
+ logger.warn "#{self.class}##{attribute} added/removed/changed and attribute_will_change! not implemented."
+ end
end
module ClassMethods
def migrate(version, &blk)
write_inheritable_array(:migrations, [Migration.new(version, blk)])