提交 d6af6fc0 编写于 作者: A Aaron Patterson 提交者: Xavier Noria

add a migrate class method and delegate to the new instance

上级 9d31acf8
......@@ -329,10 +329,13 @@ class << self
end
def self.method_missing(name, *args, &block) # :nodoc:
self.delegate = self.new
(delegate || superclass.delegate).send(name, *args, &block)
end
def self.migrate(direction)
new.migrate direction
end
cattr_accessor :verbose
attr_accessor :name, :version
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册