Permalink
Browse files

Merge pull request #9734 from choudhuryanupam/master

Method #primary_key? is not reused
  • Loading branch information...
2 parents 1a90550 + b88c96b commit ae8e84e976c296596adf97f60932bd3a164506b4 @rafaelfranca rafaelfranca committed Mar 15, 2013
@@ -25,7 +25,7 @@ def sql_type
end
def primary_key?
- type == :primary_key
+ type.to_sym == :primary_key
end
def to_sql
@@ -34,7 +34,7 @@ def to_sql
column_options[:null] = null unless null.nil?
column_options[:default] = default unless default.nil?
column_options[:column] = self
- add_column_options!(column_sql, column_options) unless type.to_sym == :primary_key
+ add_column_options!(column_sql, column_options) unless primary_key?
column_sql
end

0 comments on commit ae8e84e

Please sign in to comment.