1 class CreateUserMutes < ActiveRecord::Migration[7.0]
3 create_table :user_mutes do |t|
4 t.references :owner, :null => false, :index => false
5 t.references :subject, :null => false, :index => false
9 t.foreign_key :users, :column => :owner_id
10 t.foreign_key :users, :column => :subject_id
12 t.index [:owner_id, :subject_id], :unique => true