class CreateSignatories < ActiveRecord::Migration[7.1] def change create_table :signatories, id: :uuid do |t| t.references :letter, null: false, foreign_key: true, type: :uuid t.string :name, null: false t.string :quality, null: false t.string :email, null: false t.string :document t.uuid :token, default: 'gen_random_uuid()' t.string :ip t.string :user_agent t.datetime :signed_at t.timestamps end end end