Answers for "active record delete column"

0

ActiveRecord remove a column

class RemoveColumnFromTable < ActiveRecord::Migration[6.0]
  def change
    remove_column :table, :column, :type
  end
end
Posted by: Guest on September-15-2021

Browse Popular Code Answers by Language