Sha256: ecc8aeec84ca161b1f046ece3adce8f7aeaf35f3c6ffb2defd77fdd89cfc313f

Contents?: true

Size: 595 Bytes

Versions: 2

Compression:

Stored size: 595 Bytes

Contents

<%= autogenerated_migration_warning %>

class CreateContextModules < ActiveRecord::Migration[5.1]
  def change
    create_table :context_modules do |t|
      t.bigint :canvas_id
      t.bigint :canvas_context_id
      t.string :canvas_context_type
      t.integer :position
      t.string :name
      t.string :workflow_state
      t.datetime :deleted_at
      t.datetime :unlock_at
      t.timestamps
    end

    add_index :context_modules, :canvas_id, unique: true
    add_index :context_modules, [:canvas_context_id, :canvas_context_type], name: "index_context_modules_on_context"
  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_modules.rb
canvas_sync-0.10.0 lib/canvas_sync/generators/templates/migrations/create_context_modules.rb