Sha256: d9a69e28d742f8ece0f44fca82f8f83397f60eda40a300e3de9987aaeae058a4
Contents?: true
Size: 775 Bytes
Versions: 3
Compression:
Stored size: 775 Bytes
Contents
# This migration comes from clubhouse (originally 20150226173731) class CreateClubhouseMemberships < ActiveRecord::Migration def change create_table :clubhouse_memberships, id: :uuid do |t| t.uuid :member_id, null: false t.uuid :organization_id, null: false t.boolean :admin, null: false, default: false t.timestamps null: false end add_foreign_key :clubhouse_memberships, :users, column: :member_id, on_delete: :cascade add_foreign_key :clubhouse_memberships, :clubhouse_organizations, column: :organization_id, on_delete: :cascade add_index :clubhouse_memberships, :member_id add_index :clubhouse_memberships, :organization_id add_index :clubhouse_memberships, [:member_id, :organization_id], unique: true end end
Version data entries
3 entries across 3 versions & 1 rubygems