Sha256: cc978ddb90f4b1000f39459d28414738bfd1d507a7c3119d9d9b42bedb055e27
Contents?: true
Size: 779 Bytes
Versions: 27
Compression:
Stored size: 779 Bytes
Contents
class CreateCoalescingPandaAssignmentGroups < CoalescingPanda::MiscHelper::MigrationClass 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
27 entries across 27 versions & 1 rubygems