提交 f51f12d8 编写于 作者: J Jeremy Kemper

r1610@asus: jeremy | 2005-07-03 00:19:06 -0700

 remove Column#primary for now


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1628 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 af9d0382
......@@ -147,7 +147,6 @@ def self.symbolize_strings_in_hash(hash) #:nodoc:
module ConnectionAdapters # :nodoc:
class Column # :nodoc:
attr_reader :name, :default, :type, :limit
attr_accessor :primary
# The name should contain the name of the column, such as "name" in "name varchar(250)"
# The default should contain the type-casted default of the column, such as 1 in "count int(11) DEFAULT 1"
# The type parameter should either contain :integer, :float, :datetime, :date, :text, or :string
......@@ -155,7 +154,6 @@ class Column # :nodoc:
def initialize(name, default, sql_type = nil)
@name, @default, @type = name, type_cast(default), simplified_type(sql_type)
@limit = extract_limit(sql_type) unless sql_type.nil?
@primary = nil
end
def klass
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册