提交 6c79e820 编写于 作者: C Carlos Galdino

Remove unnecessary calls to primary_key on sqlite3_adapter

上级 6f226e01
...@@ -540,7 +540,7 @@ def copy_table(from, to, options = {}) #:nodoc: ...@@ -540,7 +540,7 @@ def copy_table(from, to, options = {}) #:nodoc:
:precision => column.precision, :scale => column.scale, :precision => column.precision, :scale => column.scale,
:null => column.null) :null => column.null)
end 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? yield @definition if block_given?
end end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册