diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2014-10-31 18:07:56 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2014-10-31 18:08:34 -0700 |
commit | bc3490c15606296891c61c55c7d0c82e38e6ded7 (patch) | |
tree | e839a147acea07eeb4c0946b2d214efcae63bf23 | |
parent | 3dae34e217320324dd0db9953b9ba77c2419ab34 (diff) | |
download | rails-bc3490c15606296891c61c55c7d0c82e38e6ded7.tar.gz rails-bc3490c15606296891c61c55c7d0c82e38e6ded7.tar.bz2 rails-bc3490c15606296891c61c55c7d0c82e38e6ded7.zip |
remove unused and untested API
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb | 8 |
1 files changed, 2 insertions, 6 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 849d41c83c..51853c6812 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb @@ -294,12 +294,8 @@ module ActiveRecord end # Sets the sequence of a table's primary key to the specified value. - def set_pk_sequence!(table, value, pk = nil, sequence = nil) #:nodoc: - unless pk and sequence - default_pk, default_sequence = pk_and_sequence_for(table) - pk ||= default_pk - sequence ||= default_sequence - end + def set_pk_sequence!(table, value) #:nodoc: + pk, sequence = pk_and_sequence_for(table) if pk if sequence |