Sha256: bac83f2cf6f3891471706545c3aa1e1f7835abe18f0f5de104a02ac5e62e87b7

Contents?: true

Size: 465 Bytes

Versions: 83

Compression:

Stored size: 465 Bytes

Contents

# <%= autogenerated_migration_warning %>

class CreateUsers < ActiveRecord::Migration[5.1]
  def change
    create_table :users do |t|
      t.bigint :canvas_id, null: false
      t.string :sis_id
      t.string :email
      t.string :first_name
      t.string :last_name
      t.string :workflow_state
      t.string :login_id
      t.string :name
      t.string :sortable_name

      t.timestamps
    end

    add_index :users, :canvas_id, unique: true
  end
end

Version data entries

83 entries across 83 versions & 1 rubygems

Version Path
canvas_sync-0.10.5 lib/canvas_sync/generators/templates/migrations/create_users.rb
canvas_sync-0.10.4 lib/canvas_sync/generators/templates/migrations/create_users.rb
canvas_sync-0.10.3 lib/canvas_sync/generators/templates/migrations/create_users.rb