class ActiveRecord::ConnectionAdapters::SQLite3Adapter

def remove_column(table_name, column_name, type = nil, **options) # :nodoc:

:nodoc:
def remove_column(table_name, column_name, type = nil, **options) # :nodoc:
  alter_table(table_name) do |definition|
    definition.remove_column column_name
    definition.foreign_keys.delete_if { |fk| fk.column == column_name.to_s }
  end
end