Class: CreateGroups
- Inherits:
 - 
      Object
      
        
- Object
 - CreateGroups
 
 
- Defined in:
 - lib/canvas_sync/generators/templates/migrations/create_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 22  | 
    
      # File 'lib/canvas_sync/generators/templates/migrations/create_groups.rb', line 4 def change create_table :groups do |t| t.bigint :canvas_id, null: false t.string :sis_id t.bigint :canvas_group_category_id t.string :group_category_sis_id t.bigint :canvas_account_id t.bigint :canvas_course_id t.string :name t.string :workflow_state t.bigint :context_id t.string :context_type t.integer :max_membership t. end add_index :groups, :canvas_id, unique: true end  |