Sha256: 58536b6adcbd246524f14412197b4452139c9b328ebed19d3c6dc817bd3fa9c0
Contents?: true
Size: 608 Bytes
Versions: 15
Compression:
Stored size: 608 Bytes
Contents
module CassandraObject module Migrations extend ActiveSupport::Concern extend ActiveSupport::Autoload included do class_attribute :migrations self.migrations = [] end autoload :Migration class MigrationNotFoundError < StandardError def initialize(record_version, migrations) super("Cannot migrate a record from #{record_version.inspect}. Migrations exist for #{migrations.map(&:version)}") end end module ClassMethods def migrate(version, &blk) migrations << Migration.new(version, blk) end end end end
Version data entries
15 entries across 15 versions & 1 rubygems