Module: Octopus::Migration

Includes:
InstanceOrClassMethods
Defined in:
lib/octopus/migration.rb

Defined Under Namespace

Modules: ClassMethods, InstanceOrClassMethods

Class Method Summary collapse

Methods included from InstanceOrClassMethods

#announce_with_octopus, #current_shard

Class Method Details

.included(base) ⇒ Object


19
20
21
22
23
24
25
26
# File 'lib/octopus/migration.rb', line 19

def self.included(base)
  base.extend(ClassMethods)

  base.send :alias_method, :announce_without_octopus, :announce
  base.send :alias_method, :announce, :announce_with_octopus

  base.class_attribute :current_shard, :current_group, :current_group_specified, :instance_reader => false, :instance_writer => false
end