dawarich/db/migrate/20240808121027_create_place_visits.rb

13 lines
291 B
Ruby
Raw Permalink Normal View History

2024-08-12 16:18:11 -04:00
# frozen_string_literal: true
class CreatePlaceVisits < ActiveRecord::Migration[7.1]
def change
create_table :place_visits do |t|
t.references :place, null: false, foreign_key: true
t.references :visit, null: false, foreign_key: true
t.timestamps
end
end
end