Sha256: 19a6db6966168016081ec3be0d186ec3147b7beb8fd5b47128f971ed1214086a

Contents?: true

Size: 607 Bytes

Versions: 2

Compression:

Stored size: 607 Bytes

Contents

#
# AUTO GENERATED MIGRATION
# This migration was auto generated by the CanvasSync Gem.
# You can add new columns to this table, but removing or
# re-naming ones created here may break Canvas Syncing.
#


class CreateAdmins < ActiveRecord::Migration[5.1]
  def change
    create_table :admins do |t|
      t.bigint :canvas_id, null: false
      t.string :role_name
      t.bigint :canvas_role_id, null: false
      t.json :user_data
      t.bigint :canvas_user_id, null: false
      t.string :workflow_state, null: false

      t.timestamps
    end
    add_index :admins, :canvas_id, unique: true
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
canvas_sync-0.10.2 spec/dummy/db/migrate/20190521003449_create_admins.rb
canvas_sync-0.10.0 spec/dummy/db/migrate/20190521003449_create_admins.rb