Sha256: 4a9c0cf21ed16421e21397772c8ac83d236a4137761d2b41f1c7c2abb64da4d1

Contents?: true

Size: 692 Bytes

Versions: 4

Compression:

Stored size: 692 Bytes

Contents

<%= autogenerated_migration_warning %>

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 lib/canvas_sync/generators/templates/models/create_assignment_groups.rb
canvas_sync-0.3.17 lib/canvas_sync/generators/templates/models/create_assignment_groups.rb
canvas_sync-0.3.16 lib/canvas_sync/generators/templates/models/create_assignment_groups.rb
canvas_sync-0.3.15 lib/canvas_sync/generators/templates/models/create_assignment_groups.rb