method
record_version_state_after_migrating
record_version_state_after_migrating(version)
private
Hide source
# File activerecord/lib/active_record/migration.rb, line 530 def record_version_state_after_migrating(version) sm_table = self.class.schema_migrations_table_name @migrated_versions ||= [] if down? @migrated_versions.delete(version.to_i) Base.connection.update("DELETE FROM #{sm_table} WHERE version = '#{version}'") else @migrated_versions.push(version.to_i).sort! Base.connection.insert("INSERT INTO #{sm_table} (version) VALUES ('#{version}')") end end