Sha256: da80e00db48887da5faee6cf42ca1cb70f53f094c424f963514f31c5cf1919d6

Contents?: true

Size: 1.68 KB

Versions: 28

Compression:

Stored size: 1.68 KB

Contents

# #
# AUTO GENERATED MIGRATION
# This migration was auto generated by the CanvasSync Gem.
# You can add new columns to this table, but removing or
# re-naming ones created here may break Canvas Syncing.
#


class CreateRubricAssociations < ActiveRecord::Migration[5.1]
  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.timestamps
    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
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
canvas_sync-0.22.9 spec/dummy/db/migrate/20240510094100_create_rubric_associations.rb
canvas_sync-0.22.8 spec/dummy/db/migrate/20240510094100_create_rubric_associations.rb
canvas_sync-0.22.6 spec/dummy/db/migrate/20240510094100_create_rubric_associations.rb
canvas_sync-0.22.5 spec/dummy/db/migrate/20240510094100_create_rubric_associations.rb
canvas_sync-0.22.4 spec/dummy/db/migrate/20240510094100_create_rubric_associations.rb
canvas_sync-0.22.3 spec/dummy/db/migrate/20240510094100_create_rubric_associations.rb
canvas_sync-0.22.2 spec/dummy/db/migrate/20240510094100_create_rubric_associations.rb
canvas_sync-0.22.1 spec/dummy/db/migrate/20240510094100_create_rubric_associations.rb
canvas_sync-0.22.0 spec/dummy/db/migrate/20240510094100_create_rubric_associations.rb
canvas_sync-0.22.0.beta8 spec/dummy/db/migrate/20240510094100_create_rubric_associations.rb
canvas_sync-0.22.0.beta7 spec/dummy/db/migrate/20240510094100_create_rubric_associations.rb
canvas_sync-0.22.0.beta6 spec/dummy/db/migrate/20240510094100_create_rubric_associations.rb
canvas_sync-0.22.0.beta5 spec/dummy/db/migrate/20240510094100_create_rubric_associations.rb
canvas_sync-0.22.0.beta4 spec/dummy/db/migrate/20240510094100_create_rubric_associations.rb
canvas_sync-0.22.0.beta3 spec/dummy/db/migrate/20240510094100_create_rubric_associations.rb
canvas_sync-0.22.0.beta2 spec/dummy/db/migrate/20240510094100_create_rubric_associations.rb
canvas_sync-0.22.0.beta1 spec/dummy/db/migrate/20240510094100_create_rubric_associations.rb
canvas_sync-0.21.1 spec/dummy/db/migrate/20240510094100_create_rubric_associations.rb
canvas_sync-0.21.1.beta1 spec/dummy/db/migrate/20240510094100_create_rubric_associations.rb
canvas_sync-0.21.0 spec/dummy/db/migrate/20240510094100_create_rubric_associations.rb