add account access

This commit is contained in:
Pete Matsyburka
2025-05-18 12:13:23 +03:00
parent 82f3ff4824
commit 01232aed5a
8 changed files with 64 additions and 5 deletions
@@ -0,0 +1,14 @@
# frozen_string_literal: true
class AccountAccesses < ActiveRecord::Migration[8.0]
def change
create_table :account_accesses do |t|
t.references :account, null: false, foreign_key: true, index: false
t.references :user, null: false, foreign_key: false, index: false
t.index %i[account_id user_id], unique: true
t.timestamps
end
end
end