class ActiveRecord::MigrationProxy

Parent:
Struct.new(:name, :version, :filename, :scope)

MigrationProxy is used to defer loading of the actual migration classes until they are needed

Public Class Methods

new(name, version, filename, scope) Show source
Calls superclass method
# File activerecord/lib/active_record/migration.rb, line 746
def initialize(name, version, filename, scope)
  super
  @migration = nil
end

Public Instance Methods

basename() Show source
# File activerecord/lib/active_record/migration.rb, line 751
def basename
  File.basename(filename)
end
mtime() Show source
# File activerecord/lib/active_record/migration.rb, line 755
def mtime
  File.mtime filename
end

© 2004–2016 David Heinemeier Hansson
Licensed under the MIT License.