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
# File activerecord/lib/active_record/migration.rb, line 938
def initialize(name, version, filename, scope)
  super
  @migration = nil
end
Calls superclass method

Public Instance Methods

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

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