Soc/db/migrate/20231229112620_create_foods.rb

10 lines
163 B
Ruby

class CreateFoods < ActiveRecord::Migration[7.1]
def change
create_table :foods do |t|
t.text :name, null: false
t.timestamps
end
end
end