Skip to content

Commit

Permalink
Restore dump_schema_information connection adapter method
Browse files Browse the repository at this point in the history
  • Loading branch information
pd authored and rick committed May 6, 2008
1 parent 0052938 commit 04d8554
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -295,6 +295,12 @@ def index_name(table_name, options) #:nodoc:
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
Expand Down

0 comments on commit 04d8554

Please sign in to comment.