Flowdock
method

remove_column

Importance_0
Ruby on Rails latest stable (v6.1.7.7) - 0 notes - Class: ActiveRecord::ConnectionAdapters::SQLite3Adapter
remove_column(table_name, column_name, type = nil, **options) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb, line 245
      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 do |_, fk_options|
            fk_options[:column] == column_name.to_s
          end
        end
      end
Register or log in to add new notes.