mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 01:31:39 -05:00
16 lines
354 B
Ruby
16 lines
354 B
Ruby
|
|
class CreateStats < ActiveRecord::Migration[7.1]
|
||
|
|
def change
|
||
|
|
create_table :stats do |t|
|
||
|
|
t.integer :year, null: false
|
||
|
|
t.integer :month, null: false
|
||
|
|
t.integer :distance, null: false
|
||
|
|
t.jsonb :toponyms
|
||
|
|
|
||
|
|
t.timestamps
|
||
|
|
end
|
||
|
|
add_index :stats, :year
|
||
|
|
add_index :stats, :month
|
||
|
|
add_index :stats, :distance
|
||
|
|
end
|
||
|
|
end
|