Sha256: 7f4016f7119c30346cc7ef25dfff58e8cc23f3bcc6526fc88b2729a821d6bd6c

Contents?: true

Size: 556 Bytes

Versions: 2

Compression:

Stored size: 556 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

2 entries across 2 versions & 1 rubygems

Version Path
canvas_sync-0.10.2 lib/canvas_sync/generators/templates/migrations/create_context_module_items.rb
canvas_sync-0.10.0 lib/canvas_sync/generators/templates/migrations/create_context_module_items.rb