class CreateAccessPeriods < ActiveRecord::Migration[7.1] def change create_table :access_periods do |t| t.date :start_date t.date :end_date t.references :user, null: false, foreign_key: true t.timestamps end end end