Files
fizzy/db/migrate/20250901114009_create_period_highlights.rb
T
Jorge Manrubia 0c979a41c5 Format
2025-09-02 11:12:33 +02:00

16 lines
416 B
Ruby

class CreatePeriodHighlights < ActiveRecord::Migration[8.1]
def change
create_table :period_highlights do |t|
t.datetime :starts_at, null: false
t.bigint :duration, null: false, default: 1.week.to_i
t.string :key, null: false
t.text :content, null: false
t.bigint :cost_in_microcents
t.index %i[ key starts_at duration ], unique: true
t.timestamps
end
end
end