mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 03:07:52 +01:00
15 lines
359 B
Ruby
15 lines
359 B
Ruby
class CreateInvitations < ActiveRecord::Migration[6.1]
|
|
def change
|
|
create_table :invitations do |t|
|
|
t.string :email, null: false
|
|
t.string :token_digest, null: false
|
|
t.datetime :accepted_at
|
|
t.references :tenant, null: false, foreign_key: true
|
|
|
|
t.timestamps
|
|
|
|
t.index [:email, :tenant_id], unique: true
|
|
end
|
|
end
|
|
end
|