Sha256: b5e9222c0ee881259ccc9dea1a6a99d733ffe9010c194c9d8863467f63d9b4a1

Contents?: true

Size: 857 Bytes

Versions: 4

Compression:

Stored size: 857 Bytes

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 CreateAssignmentGroups < ActiveRecord::Migration[5.1]
  def change
    create_table :assignment_groups do |t|
      t.bigint :canvas_assignment_group_id, null: false
      t.bigint :canvas_course_id
      t.string :name
      t.text :rules
      t.string :default_assignment_name
      t.integer :position
      t.text :assignment_weighting_scheme
      t.float :group_weight
      t.string :workflow_state
      t.datetime :canvas_created_at
      t.datetime :canvas_updated_at

      t.timestamps
    end

    add_index :assignment_groups, :canvas_assignment_group_id, unique: true
    add_index :assignment_groups, :canvas_course_id
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
canvas_sync-0.3.18 spec/dummy/db/migrate/20180215220605_create_assignment_groups.rb
canvas_sync-0.3.17 spec/dummy/db/migrate/20180215220605_create_assignment_groups.rb
canvas_sync-0.3.16 spec/dummy/db/migrate/20180215220605_create_assignment_groups.rb
canvas_sync-0.3.15 spec/dummy/db/migrate/20180215220605_create_assignment_groups.rb