foalfetch/db/migrate/20240409044229_create_visit_counts.rb

9 lines
204 B
Ruby
Raw Normal View History

2024-04-14 00:19:59 +02:00
class CreateVisitCounts < ActiveRecord::Migration[7.0]
def change
create_table :visit_counts do |t|
t.date :date, null: false
t.integer :count, null: false, default: 0
end
end
end