Answers for "rails model colum"

-1

rails model column

class AddColumnTitles < ActiveRecord::Migration
  def up
    add_column :titles, :place, :string
  end

  def down
    remove_column :titles, :place, :string
  end
end
Posted by: Guest on June-07-2020

Browse Popular Code Answers by Language