method
record_version_state_after_migrating
record_version_state_after_migrating(version)
private
Hide source
# File activerecord/lib/active_record/migration.rb, line 749 def record_version_state_after_migrating(version) table = Arel::Table.new(self.class.schema_migrations_table_name) @migrated_versions ||= [] if down? @migrated_versions.delete(version) stmt = table.where(table["version"].eq(version.to_s)).compile_delete Base.connection.delete stmt else @migrated_versions.push(version).sort! stmt = table.compile_insert table["version"] => version.to_s Base.connection.insert stmt end end