Sha256: 7ec2600265b61fbfc6b26c83ab5fd1a6c3c74c35a12fb4987397d6d08c5edeb8

Contents?: true

Size: 558 Bytes

Versions: 142

Compression:

Stored size: 558 Bytes

Contents

# <%= autogenerated_migration_warning %>

class CreateContextModuleItems < ActiveRecord::Migration[5.1]
  def change
    create_table :context_module_items do |t|
      t.bigint :canvas_id
      t.bigint :canvas_context_module_id
      t.integer :position
      t.bigint :canvas_content_id
      t.string :canvas_content_type
      t.bigint :canvas_assignment_id
      t.string :workflow_state

      t.timestamps
    end

    add_index :context_module_items, :canvas_id, unique: true
    add_index :context_module_items, :canvas_context_module_id
  end
end

Version data entries

142 entries across 142 versions & 1 rubygems

Version Path
canvas_sync-0.10.4 lib/canvas_sync/generators/templates/migrations/create_context_module_items.rb
canvas_sync-0.10.3 lib/canvas_sync/generators/templates/migrations/create_context_module_items.rb