Class: CreateRubricAssociations
- Inherits:
-
Object
- Object
- CreateRubricAssociations
- Defined in:
- lib/canvas_sync/generators/templates/migrations/create_rubric_associations.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 31 32 33 34 35 |
# File 'lib/canvas_sync/generators/templates/migrations/create_rubric_associations.rb', line 4 def change create_table :rubric_associations do |t| t.bigint :canvas_id, null: false t.bigint :canvas_rubric_id t.bigint :canvas_association_id t.string :canvas_association_type t.boolean :use_for_grading t.string :title t.text :description t.text :summary_data t.string :purpose t.string :url t.bigint :canvas_context_id t.string :canvas_context_type t.boolean :hide_score_total t.boolean :bookmarked t.string :context_code t.boolean :hide_points t.boolean :hide_outcome_results t.bigint :canvas_root_account_id t.string :workflow_state t. end add_index :rubric_associations, [:canvas_id], :name => :index_rubric_associations_on_canvas_id, unique: true add_index :rubric_associations, [:canvas_association_id, :canvas_association_type], :name => :index_rubric_associations_on_canvas_aid_and_canvas_atype add_index :rubric_associations, [:context_code], :name => :index_rubric_associations_on_context_code add_index :rubric_associations, [:canvas_context_id, :canvas_context_type], :name => :index_rubric_associations_on_canvas_cid_and_canvas_ctype add_index :rubric_associations, [:canvas_rubric_id], :name => :index_rubric_associations_on_canvas_rubric_id add_index :rubric_associations, [:canvas_root_account_id], :name => :index_rubric_associations_on_canvas_root_account_id end |