Class: CreateGroupMemberships

Inherits:
Object
  • Object
show all
Defined in:
lib/canvas_sync/generators/templates/migrations/create_group_memberships.rb

Overview

<%= autogenerated_migration_warning %>

Instance Method Summary collapse

Instance Method Details

#changeObject



4
5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/canvas_sync/generators/templates/migrations/create_group_memberships.rb', line 4

def change
  create_table :group_memberships do |t|
    t.bigint :canvas_id, null: false
    t.bigint :canvas_user_id, null: false
    t.bigint :canvas_group_id, null: false
    t.string :group_sis_id
    t.string :user_sis_id
    t.string :workflow_state

    t.timestamps
  end

  add_index :group_memberships, :canvas_id, unique: true
end