app.kluk.fr/db/migrate/20260314144625_create_modes.rb

12 lines
232 B
Ruby
Raw Normal View History

2026-03-14 15:52:29 +01:00
class CreateModes < ActiveRecord::Migration[8.0]
def change
create_table :modes do |t|
t.string :label
t.string :color
t.references :user, null: false, foreign_key: true
t.timestamps
end
end
end