class Mongoid::MigrationProxy

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

Attributes

filename[RW]
name[RW]
version[RW]

Private Instance Methods

load_migration() click to toggle source
# File lib/mongoid_rails_migrations/active_record_ext/migrations.rb, line 190
def load_migration
  require(File.expand_path(filename))
  name.constantize
end
migration() click to toggle source
# File lib/mongoid_rails_migrations/active_record_ext/migrations.rb, line 186
def migration
  @migration ||= load_migration
end