Class: CreateRubricAssessments
- Inherits:
-
Object
- Object
- CreateRubricAssessments
- Defined in:
- lib/canvas_sync/generators/templates/migrations/create_rubric_assessments.rb
Overview
<%= autogenerated_migration_warning %>
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/canvas_sync/generators/templates/migrations/create_rubric_assessments.rb', line 4 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. 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 |