Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add a migrate class method and delegate to the new instance

  • Loading branch information...
commit 3a29cc341205b7da30c537f31eefb18ede51bb4d 1 parent 43fc814
@tenderlove tenderlove authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 activerecord/lib/active_record/migration.rb
View
5 activerecord/lib/active_record/migration.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.