Class: CreateRubrics
- Inherits:
-
Object
- Object
- CreateRubrics
- Defined in:
- lib/canvas_sync/generators/templates/migrations/create_rubrics.rb
Overview
<%= autogenerated_model_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 36 37 |
# File 'lib/canvas_sync/generators/templates/migrations/create_rubrics.rb', line 4 def change create_table :rubrics do |t| t.bigint :canvas_id, null: false t.bigint :canvas_user_id t.bigint :canvas_rubric_id t.bigint :canvas_context_id t.string :canvas_context_type t.text :data t.float :points_possible t.string :title t.text :description t.boolean :reusable t.boolean :public t.boolean :read_only t.integer :association_count t.boolean :free_form_criterion_comments t.string :context_code t.string :migration_id t.boolean :hide_score_total t.string :workflow_state t.bigint :canvas_root_account_id t.boolean :hide_points t.string :rating_order t.string :button_display t. end add_index :rubrics, [:canvas_id], unique: true add_index :rubrics, [:canvas_context_id, :canvas_context_type] add_index :rubrics, [:canvas_rubric_id] add_index :rubrics, [:canvas_user_id] add_index :rubrics, [:canvas_root_account_id] end |