Sha256: d774bf9d7f7a0bc4262646af3a06841ff3d36e8c85c70ed9521e232e5a681a05

Contents?: true

Size: 759 Bytes

Versions: 62

Compression:

Stored size: 759 Bytes

Contents

class CreateCoalescingPandaAssignmentGroups < ActiveRecord::Migration
  def change
    create_table :coalescing_panda_assignment_groups do |t|
      t.belongs_to :coalescing_panda_course, null: false
      t.belongs_to :context, polymorphic: true
      t.string :canvas_assignment_group_id
      t.string :name
      t.integer :position
      t.float :group_weight
      t.string :workflow_state

      t.timestamps
    end

    add_index :coalescing_panda_assignment_groups, [:coalescing_panda_course_id, :canvas_assignment_group_id], name: :index_assignment_group_course, unique: true
    add_index :coalescing_panda_assignment_groups, [:canvas_assignment_group_id, :context_id, :context_type], name: :index_assignment_group_context, unique: true
  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
coalescing_panda-4.1.2 db/migrate/20150506183335_create_coalescing_panda_assignment_groups.rb
coalescing_panda-4.1.1 db/migrate/20150506183335_create_coalescing_panda_assignment_groups.rb