Separa heatmap mobile/desktop, opt-out analytics per operatori, dashboard costi con KPI e trend mensili. Co-authored-by: Cursor <cursoragent@cursor.com>
18 lines
469 B
Ruby
18 lines
469 B
Ruby
# frozen_string_literal: true
|
|
|
|
class CreatePlatformCostEntries < ActiveRecord::Migration[7.2]
|
|
def change
|
|
create_table :platform_cost_entries, id: :uuid do |t|
|
|
t.date :month, null: false
|
|
t.string :label, null: false, default: "Piattaforma produzione"
|
|
t.integer :amount_cents, null: false
|
|
t.text :notes
|
|
|
|
t.timestamps
|
|
end
|
|
|
|
add_index :platform_cost_entries, :month
|
|
add_index :platform_cost_entries, %i[month label]
|
|
end
|
|
end
|