Flowdock
method

record_version_state_after_migrating

Importance_0
record_version_state_after_migrating(version) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/migration.rb, line 589
      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
Register or log in to add new notes.