count-anything/db/migrate/20230204135557_create_totals.rb

11 lines
226 B
Ruby
Raw Normal View History

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