aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2013-06-13 05:49:31 -0700
committerRafael Mendonça França <rafaelmfranca@gmail.com>2013-06-13 05:49:31 -0700
commit47e8bb10a421831f8119af91d7ca29c949268475 (patch)
treed1d4b94679ad50481fc61d873f8110b4ba5e6c67 /activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
parenta272d0cbe22369948e4fedf66a5889240b5e7b25 (diff)
parentea72430b8406c708033b39bbf152762e5ffaa7f8 (diff)
downloadrails-47e8bb10a421831f8119af91d7ca29c949268475.tar.gz
rails-47e8bb10a421831f8119af91d7ca29c949268475.tar.bz2
rails-47e8bb10a421831f8119af91d7ca29c949268475.zip
Merge pull request #10425 from ranjaykrishna/push_add_column_options_to_schema_creation
Push add column options to schema creation
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb')
-rw-r--r--activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb11
1 files changed, 0 insertions, 11 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
index 2a4eda3622..3ac55a0f11 100644
--- a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
+++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
@@ -694,17 +694,6 @@ module ActiveRecord
end
end
- def add_column_options!(sql, options) #:nodoc:
- sql << " DEFAULT #{quote(options[:default], options[:column])}" if options_include_default?(options)
- # must explicitly check for :null to allow change_column to work on migrations
- if options[:null] == false
- sql << " NOT NULL"
- end
- if options[:auto_increment] == true
- sql << " AUTO_INCREMENT"
- end
- end
-
# SELECT DISTINCT clause for a given set of columns and a given ORDER BY clause.
#
# distinct("posts.id", ["posts.created_at desc"])