Sha256: d490498e6d42b87312da7e282d0452a21b8137bd93db5b2ee415cf90baa65cd8

Contents?: true

Size: 578 Bytes

Versions: 140

Compression:

Stored size: 578 Bytes

Contents

# <%= autogenerated_migration_warning %>

class CreateAssignmentGroups < ActiveRecord::Migration[5.1]
  def change
    create_table :assignment_groups do |t|
      t.bigint :canvas_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_id, unique: true
    add_index :assignment_groups, :canvas_course_id
  end
end

Version data entries

140 entries across 140 versions & 1 rubygems

Version Path
canvas_sync-0.22.6 lib/canvas_sync/generators/templates/migrations/create_assignment_groups.rb
canvas_sync-0.22.5 lib/canvas_sync/generators/templates/migrations/create_assignment_groups.rb
canvas_sync-0.22.4 lib/canvas_sync/generators/templates/migrations/create_assignment_groups.rb
canvas_sync-0.22.3 lib/canvas_sync/generators/templates/migrations/create_assignment_groups.rb
canvas_sync-0.22.2 lib/canvas_sync/generators/templates/migrations/create_assignment_groups.rb
canvas_sync-0.22.1 lib/canvas_sync/generators/templates/migrations/create_assignment_groups.rb
canvas_sync-0.22.0 lib/canvas_sync/generators/templates/migrations/create_assignment_groups.rb
canvas_sync-0.22.0.beta8 lib/canvas_sync/generators/templates/migrations/create_assignment_groups.rb
canvas_sync-0.22.0.beta7 lib/canvas_sync/generators/templates/migrations/create_assignment_groups.rb
canvas_sync-0.22.0.beta6 lib/canvas_sync/generators/templates/migrations/create_assignment_groups.rb
canvas_sync-0.22.0.beta5 lib/canvas_sync/generators/templates/migrations/create_assignment_groups.rb
canvas_sync-0.22.0.beta4 lib/canvas_sync/generators/templates/migrations/create_assignment_groups.rb
canvas_sync-0.22.0.beta3 lib/canvas_sync/generators/templates/migrations/create_assignment_groups.rb
canvas_sync-0.22.0.beta2 lib/canvas_sync/generators/templates/migrations/create_assignment_groups.rb
canvas_sync-0.22.0.beta1 lib/canvas_sync/generators/templates/migrations/create_assignment_groups.rb
canvas_sync-0.21.1 lib/canvas_sync/generators/templates/migrations/create_assignment_groups.rb
canvas_sync-0.21.1.beta1 lib/canvas_sync/generators/templates/migrations/create_assignment_groups.rb
canvas_sync-0.21.0 lib/canvas_sync/generators/templates/migrations/create_assignment_groups.rb
canvas_sync-0.21.0.beta5 lib/canvas_sync/generators/templates/migrations/create_assignment_groups.rb
canvas_sync-0.21.0.beta4 lib/canvas_sync/generators/templates/migrations/create_assignment_groups.rb