Sha256: 25a5f552941fb312d70d5a2337d85b0e6ab03782ab017ea52661c5b09004a4ec

Contents?: true

Size: 625 Bytes

Versions: 26

Compression:

Stored size: 625 Bytes

Contents

<%= autogenerated_migration_warning %>

class CreateContextModules < ActiveRecord::Migration[5.1]
  def change
    create_table :context_modules do |t|
      t.bigint :canvas_context_module_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_context_module_id, unique: true
    add_index :context_modules, [:canvas_context_id, :canvas_context_type], name: "index_context_modules_on_context"
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
canvas_sync-0.9.4 lib/canvas_sync/generators/templates/models/create_context_modules.rb
canvas_sync-0.9.3 lib/canvas_sync/generators/templates/models/create_context_modules.rb
canvas_sync-0.9.2 lib/canvas_sync/generators/templates/models/create_context_modules.rb
canvas_sync-0.9.1 lib/canvas_sync/generators/templates/models/create_context_modules.rb
canvas_sync-0.9.0 lib/canvas_sync/generators/templates/models/create_context_modules.rb
canvas_sync-0.8.4 lib/canvas_sync/generators/templates/models/create_context_modules.rb
canvas_sync-0.8.3 lib/canvas_sync/generators/templates/models/create_context_modules.rb
canvas_sync-0.8.2 lib/canvas_sync/generators/templates/models/create_context_modules.rb
canvas_sync-0.8.1 lib/canvas_sync/generators/templates/models/create_context_modules.rb
canvas_sync-0.8.0 lib/canvas_sync/generators/templates/models/create_context_modules.rb
canvas_sync-0.7.3 lib/canvas_sync/generators/templates/models/create_context_modules.rb
canvas_sync-0.7.2 lib/canvas_sync/generators/templates/models/create_context_modules.rb
canvas_sync-0.7.1 lib/canvas_sync/generators/templates/models/create_context_modules.rb
canvas_sync-0.7.0 lib/canvas_sync/generators/templates/models/create_context_modules.rb
canvas_sync-0.6.4 lib/canvas_sync/generators/templates/models/create_context_modules.rb
canvas_sync-0.6.3 lib/canvas_sync/generators/templates/models/create_context_modules.rb
canvas_sync-0.6.2 lib/canvas_sync/generators/templates/models/create_context_modules.rb
canvas_sync-0.6.1 lib/canvas_sync/generators/templates/models/create_context_modules.rb
canvas_sync-0.6.0 lib/canvas_sync/generators/templates/models/create_context_modules.rb
canvas_sync-0.5.4 lib/canvas_sync/generators/templates/models/create_context_modules.rb