mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 01:31:39 -05:00
13 lines
278 B
Ruby
13 lines
278 B
Ruby
|
|
# frozen_string_literal: true
|
||
|
|
|
||
|
|
class CreateVisits < ActiveRecord::Migration[7.1]
|
||
|
|
def change
|
||
|
|
create_table :visits do |t|
|
||
|
|
t.references :area, null: false, foreign_key: true
|
||
|
|
t.references :user, null: false, foreign_key: true
|
||
|
|
|
||
|
|
t.timestamps
|
||
|
|
end
|
||
|
|
end
|
||
|
|
end
|