count-anything/db/migrate/20230204135557_create_totals.rb
Louis Vallat d07857c011
feat: added counts and instant update and destroy
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2023-02-05 21:01:07 +01:00

11 lines
226 B
Ruby

class CreateTotals < ActiveRecord::Migration[7.0]
def change
create_table :totals do |t|
t.integer :count, null: false, default: 0
t.text :name, index: true, null: false
t.timestamps
end
end
end