aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/abstract
diff options
context:
space:
mode:
authorJosh Susser <josh@hasmanythrough.com>2012-12-02 21:16:32 -0800
committerJosh Susser <josh@hasmanythrough.com>2012-12-02 21:16:32 -0800
commitf02d2185ebbe01f455a9a91216ff7094b014ea72 (patch)
tree078c6183d84a9b3c7e72fe77450083df13d86b7e /activerecord/lib/active_record/connection_adapters/abstract
parent0a5afa229d769bce9e221f34053bb93b60817a5a (diff)
downloadrails-f02d2185ebbe01f455a9a91216ff7094b014ea72.tar.gz
rails-f02d2185ebbe01f455a9a91216ff7094b014ea72.tar.bz2
rails-f02d2185ebbe01f455a9a91216ff7094b014ea72.zip
Add migration history to schema.rb dump
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/abstract')
-rw-r--r--activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
index 7802cb02d8..a470e8de07 100644
--- a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
+++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
@@ -490,8 +490,8 @@ module ActiveRecord
sm_table = ActiveRecord::Migrator.schema_migrations_table_name
ActiveRecord::SchemaMigration.order('version').map { |sm|
- "INSERT INTO #{sm_table} (version, migrated_at, name) VALUES ('#{sm.version}',LOCALTIMESTAMP,'#{sm.name}');"
- }.join "\n\n"
+ "INSERT INTO #{sm_table} (version, migrated_at, fingerprint, name) VALUES ('#{sm.version}',LOCALTIMESTAMP,'#{sm.fingerprint}','#{sm.name}');"
+ }.join("\n\n")
end
# Should not be called normally, but this operation is non-destructive.