lib/canvas_sync/generators/templates/migrations/create_grading_period_groups.rb



# <%= autogenerated_migration_warning %>

class CreateGradingPeriodGroups < ActiveRecord::Migration[5.1]
  def change
    create_table :grading_period_groups do |t|
      t.bigint :canvas_id, null: false
      t.string :title
      t.boolean :weighted
      t.boolean :display_totals_for_all_grading_periods

      t.string :workflow_state

      t.timestamps
    end

    add_index :grading_period_groups, :canvas_id, unique: true
  end
end