1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #19984 from mcfiredrill/nodoc-change-column-null

:nodoc: change_column_null in the implmenting adapters
This commit is contained in:
Yves Senn 2015-05-03 12:58:58 +02:00
commit 347052a50e
3 changed files with 3 additions and 3 deletions

View file

@ -634,7 +634,7 @@ module ActiveRecord
change_column table_name, column_name, column.sql_type, :default => default
end
def change_column_null(table_name, column_name, null, default = nil)
def change_column_null(table_name, column_name, null, default = nil) #:nodoc:
column = column_for(table_name, column_name)
unless null || default.nil?

View file

@ -438,7 +438,7 @@ module ActiveRecord
end
end
def change_column_null(table_name, column_name, null, default = nil)
def change_column_null(table_name, column_name, null, default = nil) #:nodoc:
clear_cache!
unless null || default.nil?
column = column_for(table_name, column_name)

View file

@ -450,7 +450,7 @@ module ActiveRecord
end
end
def change_column_null(table_name, column_name, null, default = nil)
def change_column_null(table_name, column_name, null, default = nil) #:nodoc:
unless null || default.nil?
exec_query("UPDATE #{quote_table_name(table_name)} SET #{quote_column_name(column_name)}=#{quote(default)} WHERE #{quote_column_name(column_name)} IS NULL")
end