Answers for "ActiveRecord remove a 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

Code answers related to "ActiveRecord remove a column"

Browse Popular Code Answers by Language