Restore dump_schema_information connection adapter method

This commit is contained in:
Kyle Hargraves
2008-05-04 01:31:36 -05:00
committed by rick
parent 0052938ac5
commit 04d8554860

View File

@@ -295,6 +295,12 @@ module ActiveRecord
def structure_dump
end
def dump_schema_information #:nodoc:
sm_table = ActiveRecord::Migrator.schema_migrations_table_name
migrated = select_values("SELECT version FROM #{sm_table}")
migrated.map { |v| "INSERT INTO #{sm_table} (version) VALUES ('#{v}');" }.join("\n")
end
# Should not be called normally, but this operation is non-destructive.
# The migrations module handles this automatically.
def initialize_schema_migrations_table