Sha256: 5e280c8c97ccb7bc31feee6b7c7ff26ce8191bfeaeb715c515c1676a115aba0b

Contents?: true

Size: 1.41 KB

Versions: 28

Compression:

Stored size: 1.41 KB

Contents

# <%= autogenerated_migration_warning %>

class CreateRubricAssessments < ActiveRecord::Migration[5.1]
  def change
    create_table :rubric_assessments do |t|
      t.bigint :canvas_id
      t.bigint :canvas_user_id
      t.bigint :canvas_rubric_id
      t.bigint :canvas_rubric_association_id
      t.float :score
      t.text :data
      t.bigint :canvas_artifact_id
      t.string :canvas_artifact_type
      t.string :assessment_type
      t.bigint :canvas_assessor_id
      t.integer :artifact_attempt
      t.boolean :hide_points
      t.bigint :canvas_root_account_id

      t.timestamps
    end

    add_index :rubric_assessments, [:canvas_id], name: :index_rubric_assessments_on_canvas_id, unique: true
    add_index :rubric_assessments, [:canvas_artifact_id, :canvas_artifact_type], name: :index_rubric_assessments_on_canvas_aid_and_canvas_atype
    add_index :rubric_assessments, [:canvas_assessor_id], name: :index_rubric_assessments_on_canvas_assessor_id
    add_index :rubric_assessments, [:canvas_rubric_association_id], name: :index_rubric_assessments_on_canvas_rubric_association_id
    add_index :rubric_assessments, [:canvas_rubric_id], name: :index_rubric_assessments_on_canvas_rubric_id
    add_index :rubric_assessments, [:canvas_user_id], name: :index_rubric_assessments_on_canvas_user_id
    add_index :rubric_assessments, [:canvas_root_account_id], name: :index_rubric_assessments_on_canvas_root_account_id
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
canvas_sync-0.22.9 lib/canvas_sync/generators/templates/migrations/create_rubric_assessments.rb
canvas_sync-0.22.8 lib/canvas_sync/generators/templates/migrations/create_rubric_assessments.rb
canvas_sync-0.22.6 lib/canvas_sync/generators/templates/migrations/create_rubric_assessments.rb
canvas_sync-0.22.5 lib/canvas_sync/generators/templates/migrations/create_rubric_assessments.rb
canvas_sync-0.22.4 lib/canvas_sync/generators/templates/migrations/create_rubric_assessments.rb
canvas_sync-0.22.3 lib/canvas_sync/generators/templates/migrations/create_rubric_assessments.rb
canvas_sync-0.22.2 lib/canvas_sync/generators/templates/migrations/create_rubric_assessments.rb
canvas_sync-0.22.1 lib/canvas_sync/generators/templates/migrations/create_rubric_assessments.rb
canvas_sync-0.22.0 lib/canvas_sync/generators/templates/migrations/create_rubric_assessments.rb
canvas_sync-0.22.0.beta8 lib/canvas_sync/generators/templates/migrations/create_rubric_assessments.rb
canvas_sync-0.22.0.beta7 lib/canvas_sync/generators/templates/migrations/create_rubric_assessments.rb
canvas_sync-0.22.0.beta6 lib/canvas_sync/generators/templates/migrations/create_rubric_assessments.rb
canvas_sync-0.22.0.beta5 lib/canvas_sync/generators/templates/migrations/create_rubric_assessments.rb
canvas_sync-0.22.0.beta4 lib/canvas_sync/generators/templates/migrations/create_rubric_assessments.rb
canvas_sync-0.22.0.beta3 lib/canvas_sync/generators/templates/migrations/create_rubric_assessments.rb
canvas_sync-0.22.0.beta2 lib/canvas_sync/generators/templates/migrations/create_rubric_assessments.rb
canvas_sync-0.22.0.beta1 lib/canvas_sync/generators/templates/migrations/create_rubric_assessments.rb
canvas_sync-0.21.1 lib/canvas_sync/generators/templates/migrations/create_rubric_assessments.rb
canvas_sync-0.21.1.beta1 lib/canvas_sync/generators/templates/migrations/create_rubric_assessments.rb
canvas_sync-0.21.0 lib/canvas_sync/generators/templates/migrations/create_rubric_assessments.rb