Permalink
Browse files

Merge pull request #6333 from carlosgaldino/unnecessary-call

Remove unnecessary calls to primary_key on sqlite3_adapter
  • Loading branch information...
2 parents 6f226e0 + 6c79e82 commit dafc7343097be4b56510e693c487b284446bc1fb @rafaelfranca rafaelfranca committed May 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb
@@ -540,7 +540,7 @@ def copy_table(from, to, options = {}) #:nodoc:
:precision => column.precision, :scale => column.scale,
:null => column.null)
end
- @definition.primary_key(primary_key(from)) if primary_key(from)
+ @definition.primary_key(from_primary_key) if from_primary_key
yield @definition if block_given?
end

0 comments on commit dafc734

Please sign in to comment.