method
add_column
v6.1.7.7 -
Show latest stable
- Class:
ActiveRecord::Migration::Compatibility::V5_0
add_column(table_name, column_name, type, **options)public
No documentation available.
# File activerecord/lib/active_record/migration/compatibility.rb, line 206
def add_column(table_name, column_name, type, **options)
if type == :primary_key
type = :integer
options[:primary_key] = true
end
super
end