Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove unnecessary calls to primary_key on sqlite3_adapter

  • Loading branch information...
commit 6c79e82002b497acc4e1515a1c40a4f12678cc28 1 parent 6f226e0
@carlosgaldino carlosgaldino authored
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.