Sha256: 2b868a7a90439b65d1a9954ce2cc2455736735b601b1ef6206681245daf935ea
Contents?: true
Size: 722 Bytes
Versions: 3
Compression:
Stored size: 722 Bytes
Contents
# This migration comes from clubhouse (originally 20150228055036) class CreateClubhouseInvitations < ActiveRecord::Migration def change create_table :clubhouse_invitations, id: :uuid do |t| t.uuid :organization_id, null: false t.string :email, null: false t.string :token, null: false t.boolean :admin, null: false, default: false t.timestamps null: false end add_foreign_key :clubhouse_invitations, :clubhouse_organizations, column: :organization_id, on_delete: :cascade add_index :clubhouse_invitations, :organization_id add_index :clubhouse_invitations, [:email, :organization_id], unique: true add_index :clubhouse_invitations, :token, unique: true end end
Version data entries
3 entries across 3 versions & 1 rubygems