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.18.10 lib/canvas_sync/generators/templates/migrations/create_assignment_groups.rb
canvas_sync-0.18.9 lib/canvas_sync/generators/templates/migrations/create_assignment_groups.rb
canvas_sync-0.18.8 lib/canvas_sync/generators/templates/migrations/create_assignment_groups.rb
canvas_sync-0.18.7 lib/canvas_sync/generators/templates/migrations/create_assignment_groups.rb
canvas_sync-0.18.6 lib/canvas_sync/generators/templates/migrations/create_assignment_groups.rb
canvas_sync-0.18.5 lib/canvas_sync/generators/templates/migrations/create_assignment_groups.rb
canvas_sync-0.18.3 lib/canvas_sync/generators/templates/migrations/create_assignment_groups.rb
canvas_sync-0.18.2 lib/canvas_sync/generators/templates/migrations/create_assignment_groups.rb
canvas_sync-0.18.1 lib/canvas_sync/generators/templates/migrations/create_assignment_groups.rb
canvas_sync-0.18.0.beta2 lib/canvas_sync/generators/templates/migrations/create_assignment_groups.rb
canvas_sync-0.18.0.beta1 lib/canvas_sync/generators/templates/migrations/create_assignment_groups.rb
canvas_sync-0.17.43 lib/canvas_sync/generators/templates/migrations/create_assignment_groups.rb
canvas_sync-0.17.42 lib/canvas_sync/generators/templates/migrations/create_assignment_groups.rb
canvas_sync-0.17.41 lib/canvas_sync/generators/templates/migrations/create_assignment_groups.rb
canvas_sync-0.17.40 lib/canvas_sync/generators/templates/migrations/create_assignment_groups.rb
canvas_sync-0.17.39 lib/canvas_sync/generators/templates/migrations/create_assignment_groups.rb
canvas_sync-0.17.38 lib/canvas_sync/generators/templates/migrations/create_assignment_groups.rb
canvas_sync-0.17.37 lib/canvas_sync/generators/templates/migrations/create_assignment_groups.rb
canvas_sync-0.17.36 lib/canvas_sync/generators/templates/migrations/create_assignment_groups.rb
canvas_sync-0.17.35 lib/canvas_sync/generators/templates/migrations/create_assignment_groups.rb