class

ActiveRecord::InvalidMigrationTimestampError

v8.1.1 - Show latest stable - Superclass: ActiveRecord::MigrationError

No documentation available for this class.

Constants

MigrationProxy = Struct.new(:name, :version, :filename, :scope) do\ndef initialize(name, version, filename, scope)\nsuper\n@migration = nil\nend\n\ndef basename\nFile.basename(filename)\nend\n\ndelegate :migrate, :announce, :write, :disable_ddl_transaction, to: :migration\n\nprivate\ndef migration\n@migration ||= load_migration\nend\n\ndef load_migration\nObject.send(:remove_const, name) rescue nil\n\nload(File.expand_path(filename))\nname.constantize.new(name, version)\nend\nend

Files

  • activerecord/lib/active_record/migration.rb