Sha256: 51410c39c81daf54b21d14a961315a6dfe53d78e7b05e267db373c704e82e512

Contents?: true

Size: 1.08 KB

Versions: 28

Compression:

Stored size: 1.08 KB

Contents

# <%= autogenerated_model_warning %>

class CreateRubrics < ActiveRecord::Migration[5.1]
  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.timestamps
    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
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_rubrics.rb
canvas_sync-0.22.8 lib/canvas_sync/generators/templates/migrations/create_rubrics.rb
canvas_sync-0.22.6 lib/canvas_sync/generators/templates/migrations/create_rubrics.rb
canvas_sync-0.22.5 lib/canvas_sync/generators/templates/migrations/create_rubrics.rb
canvas_sync-0.22.4 lib/canvas_sync/generators/templates/migrations/create_rubrics.rb
canvas_sync-0.22.3 lib/canvas_sync/generators/templates/migrations/create_rubrics.rb
canvas_sync-0.22.2 lib/canvas_sync/generators/templates/migrations/create_rubrics.rb
canvas_sync-0.22.1 lib/canvas_sync/generators/templates/migrations/create_rubrics.rb
canvas_sync-0.22.0 lib/canvas_sync/generators/templates/migrations/create_rubrics.rb
canvas_sync-0.22.0.beta8 lib/canvas_sync/generators/templates/migrations/create_rubrics.rb
canvas_sync-0.22.0.beta7 lib/canvas_sync/generators/templates/migrations/create_rubrics.rb
canvas_sync-0.22.0.beta6 lib/canvas_sync/generators/templates/migrations/create_rubrics.rb
canvas_sync-0.22.0.beta5 lib/canvas_sync/generators/templates/migrations/create_rubrics.rb
canvas_sync-0.22.0.beta4 lib/canvas_sync/generators/templates/migrations/create_rubrics.rb
canvas_sync-0.22.0.beta3 lib/canvas_sync/generators/templates/migrations/create_rubrics.rb
canvas_sync-0.22.0.beta2 lib/canvas_sync/generators/templates/migrations/create_rubrics.rb
canvas_sync-0.22.0.beta1 lib/canvas_sync/generators/templates/migrations/create_rubrics.rb
canvas_sync-0.21.1 lib/canvas_sync/generators/templates/migrations/create_rubrics.rb
canvas_sync-0.21.1.beta1 lib/canvas_sync/generators/templates/migrations/create_rubrics.rb
canvas_sync-0.21.0 lib/canvas_sync/generators/templates/migrations/create_rubrics.rb