Method: Cell::Ext::Migration.intercept

Defined in:
lib/cell/ext/migration.rb

.intercept(methods) ⇒ Object

We intercept these methods, and only execute if appropriate according to execute_ddl?



93
94
95
96
97
98
99
# File 'lib/cell/ext/migration.rb', line 93

def self.intercept(methods)
  methods.each do |method|
    define_method(method) do |*args, &block|
      super(*args, &block) if execute_ddl?
    end
  end
end