diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2014-10-31 18:01:06 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2014-10-31 18:08:34 -0700 |
commit | 3dae34e217320324dd0db9953b9ba77c2419ab34 (patch) | |
tree | d356676c6c8741f22ccdc05238e896f66ee62b79 /activerecord/lib | |
parent | 4f6fb19662331afd90539103cd0d2691e72c54b9 (diff) | |
download | rails-3dae34e217320324dd0db9953b9ba77c2419ab34.tar.gz rails-3dae34e217320324dd0db9953b9ba77c2419ab34.tar.bz2 rails-3dae34e217320324dd0db9953b9ba77c2419ab34.zip |
fix set_pk_sequence and add a test for it.
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb b/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb index 47e030e981..849d41c83c 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb @@ -303,7 +303,7 @@ module ActiveRecord if pk if sequence - quoted_sequence = quote_column_name(sequence) + quoted_sequence = quote_table_name(sequence) select_value <<-end_sql, 'SCHEMA' SELECT setval('#{quoted_sequence}', #{value}) |