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_migrations/active_record_ext/migrations.rb, line 183 def load_migration require(File.expand_path(filename)) name.constantize end
migration()
click to toggle source
# File lib/mongoid_migrations/active_record_ext/migrations.rb, line 179 def migration @migration ||= load_migration end