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.17.5.beta2 lib/canvas_sync/generators/templates/migrations/create_assignment_groups.rb
canvas_sync-0.17.5.beta1 lib/canvas_sync/generators/templates/migrations/create_assignment_groups.rb
canvas_sync-0.17.4 lib/canvas_sync/generators/templates/migrations/create_assignment_groups.rb
canvas_sync-0.17.3.beta3 lib/canvas_sync/generators/templates/migrations/create_assignment_groups.rb
canvas_sync-0.17.3.beta2 lib/canvas_sync/generators/templates/migrations/create_assignment_groups.rb
canvas_sync-0.17.3.beta1 lib/canvas_sync/generators/templates/migrations/create_assignment_groups.rb
canvas_sync-0.17.2 lib/canvas_sync/generators/templates/migrations/create_assignment_groups.rb
canvas_sync-0.17.1 lib/canvas_sync/generators/templates/migrations/create_assignment_groups.rb
canvas_sync-0.17.0 lib/canvas_sync/generators/templates/migrations/create_assignment_groups.rb
canvas_sync-0.17.0.beta15 lib/canvas_sync/generators/templates/migrations/create_assignment_groups.rb
canvas_sync-0.17.0.beta14 lib/canvas_sync/generators/templates/migrations/create_assignment_groups.rb
canvas_sync-0.17.0.beta13 lib/canvas_sync/generators/templates/migrations/create_assignment_groups.rb
canvas_sync-0.17.0.beta12 lib/canvas_sync/generators/templates/migrations/create_assignment_groups.rb
canvas_sync-0.17.0.beta11 lib/canvas_sync/generators/templates/migrations/create_assignment_groups.rb
canvas_sync-0.17.0.beta10 lib/canvas_sync/generators/templates/migrations/create_assignment_groups.rb
canvas_sync-0.17.0.beta9 lib/canvas_sync/generators/templates/migrations/create_assignment_groups.rb
canvas_sync-0.17.0.beta8 lib/canvas_sync/generators/templates/migrations/create_assignment_groups.rb
canvas_sync-0.17.0.beta7 lib/canvas_sync/generators/templates/migrations/create_assignment_groups.rb
canvas_sync-0.17.0.beta6 lib/canvas_sync/generators/templates/migrations/create_assignment_groups.rb
canvas_sync-0.17.0.beta5 lib/canvas_sync/generators/templates/migrations/create_assignment_groups.rb