mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
add a migrate class method and delegate to the new instance
This commit is contained in:
@@ -329,10 +329,13 @@ module ActiveRecord
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user