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.17.37 lib/canvas_sync/generators/templates/migrations/create_users.rb
canvas_sync-0.17.36 lib/canvas_sync/generators/templates/migrations/create_users.rb
canvas_sync-0.17.35 lib/canvas_sync/generators/templates/migrations/create_users.rb
canvas_sync-0.17.34 lib/canvas_sync/generators/templates/migrations/create_users.rb
canvas_sync-0.17.33 lib/canvas_sync/generators/templates/migrations/create_users.rb
canvas_sync-0.17.32 lib/canvas_sync/generators/templates/migrations/create_users.rb
canvas_sync-0.17.31 lib/canvas_sync/generators/templates/migrations/create_users.rb
canvas_sync-0.17.30 lib/canvas_sync/generators/templates/migrations/create_users.rb
canvas_sync-0.17.29 lib/canvas_sync/generators/templates/migrations/create_users.rb
canvas_sync-0.17.28 lib/canvas_sync/generators/templates/migrations/create_users.rb
canvas_sync-0.17.27 lib/canvas_sync/generators/templates/migrations/create_users.rb
canvas_sync-0.17.27.beta1 lib/canvas_sync/generators/templates/migrations/create_users.rb
canvas_sync-0.17.26.beta1 lib/canvas_sync/generators/templates/migrations/create_users.rb
canvas_sync-0.17.24 lib/canvas_sync/generators/templates/migrations/create_users.rb
canvas_sync-0.17.23 lib/canvas_sync/generators/templates/migrations/create_users.rb
canvas_sync-0.17.23.beta8 lib/canvas_sync/generators/templates/migrations/create_users.rb
canvas_sync-0.17.23.beta7 lib/canvas_sync/generators/templates/migrations/create_users.rb
canvas_sync-0.17.23.beta6 lib/canvas_sync/generators/templates/migrations/create_users.rb
canvas_sync-0.17.23.beta5 lib/canvas_sync/generators/templates/migrations/create_users.rb
canvas_sync-0.17.23.beta4 lib/canvas_sync/generators/templates/migrations/create_users.rb