# 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