Class: CreateAssignmentGroups
- Inherits:
-
Object
- Object
- CreateAssignmentGroups
- Defined in:
- lib/canvas_sync/generators/templates/migrations/create_assignment_groups.rb
Overview
<%= autogenerated_migration_warning %>
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/canvas_sync/generators/templates/migrations/create_assignment_groups.rb', line 4 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. end add_index :assignment_groups, :canvas_id, unique: true add_index :assignment_groups, :canvas_course_id end |