method
record_version_state_after_migrating
record_version_state_after_migrating(version)
private
Hide source
# File activerecord/lib/active_record/migration.rb, line 587 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) table.where(table["version"].eq(version.to_s)).delete else @migrated_versions.push(version).sort! table.insert table["version"] => version.to_s end end