Sha256: bd3d20827ad37950ede184f0df5d41dfe17eb2197d1e2d1be58d46639970da56

Contents?: true

Size: 775 Bytes

Versions: 30

Compression:

Stored size: 775 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.integer :position
      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

30 entries across 30 versions & 1 rubygems

Version Path
canvas_sync-0.5.3 spec/dummy/db/migrate/20180222163506_create_assignment_groups.rb
canvas_sync-0.5.2 spec/dummy/db/migrate/20180222163506_create_assignment_groups.rb
canvas_sync-0.5.1 spec/dummy/db/migrate/20180222163506_create_assignment_groups.rb
canvas_sync-0.4.1 spec/dummy/db/migrate/20180222163506_create_assignment_groups.rb
canvas_sync-0.4.0 spec/dummy/db/migrate/20180222163506_create_assignment_groups.rb
canvas_sync-0.3.23 spec/dummy/db/migrate/20180222163506_create_assignment_groups.rb
canvas_sync-0.3.22 spec/dummy/db/migrate/20180222163506_create_assignment_groups.rb
canvas_sync-0.3.21 spec/dummy/db/migrate/20180222163506_create_assignment_groups.rb
canvas_sync-0.3.20 spec/dummy/db/migrate/20180222163506_create_assignment_groups.rb
canvas_sync-0.3.19 spec/dummy/db/migrate/20180222163506_create_assignment_groups.rb