Sha256: f7aa7109b6ffb7f1b6210c23a963459259d17d638bb676196fde0e2fc258b4f5

Contents?: true

Size: 939 Bytes

Versions: 60

Compression:

Stored size: 939 Bytes

Contents

# <%= autogenerated_migration_warning %>

class CreateLearningOutcomes < ActiveRecord::Migration[5.1]
  def change
    create_table :learning_outcomes do |t|
      t.bigint :canvas_id, null: false
      t.integer :canvas_context_id
      t.string :canvas_context_type
      t.string :name
      t.string :friendly_name
      t.string :workflow_state
      t.datetime :canvas_created_at
      t.datetime :canvas_updated_at
      t.string :migration_id
      t.string :vendor_guid
      t.string :low_grade
      t.string :high_grade
      t.string :calculation_method
      t.string :calculation_int
      t.integer :outcome_import_id
      t.integer :root_account_ids, array: true, default: []
      t.text :description

      t.timestamps
    end

    add_index :learning_outcomes, :canvas_id, unique: true
    add_index :learning_outcomes, [:canvas_context_id, :canvas_context_type], name: "index_learning_outcomes_on_context"
  end
end

Version data entries

60 entries across 60 versions & 1 rubygems

Version Path
canvas_sync-0.22.6 lib/canvas_sync/generators/templates/migrations/create_learning_outcomes.rb
canvas_sync-0.22.5 lib/canvas_sync/generators/templates/migrations/create_learning_outcomes.rb
canvas_sync-0.22.4 lib/canvas_sync/generators/templates/migrations/create_learning_outcomes.rb
canvas_sync-0.22.3 lib/canvas_sync/generators/templates/migrations/create_learning_outcomes.rb
canvas_sync-0.22.2 lib/canvas_sync/generators/templates/migrations/create_learning_outcomes.rb
canvas_sync-0.22.1 lib/canvas_sync/generators/templates/migrations/create_learning_outcomes.rb
canvas_sync-0.22.0 lib/canvas_sync/generators/templates/migrations/create_learning_outcomes.rb
canvas_sync-0.22.0.beta8 lib/canvas_sync/generators/templates/migrations/create_learning_outcomes.rb
canvas_sync-0.22.0.beta7 lib/canvas_sync/generators/templates/migrations/create_learning_outcomes.rb
canvas_sync-0.22.0.beta6 lib/canvas_sync/generators/templates/migrations/create_learning_outcomes.rb
canvas_sync-0.22.0.beta5 lib/canvas_sync/generators/templates/migrations/create_learning_outcomes.rb
canvas_sync-0.22.0.beta4 lib/canvas_sync/generators/templates/migrations/create_learning_outcomes.rb
canvas_sync-0.22.0.beta3 lib/canvas_sync/generators/templates/migrations/create_learning_outcomes.rb
canvas_sync-0.22.0.beta2 lib/canvas_sync/generators/templates/migrations/create_learning_outcomes.rb
canvas_sync-0.22.0.beta1 lib/canvas_sync/generators/templates/migrations/create_learning_outcomes.rb
canvas_sync-0.21.1 lib/canvas_sync/generators/templates/migrations/create_learning_outcomes.rb
canvas_sync-0.21.1.beta1 lib/canvas_sync/generators/templates/migrations/create_learning_outcomes.rb
canvas_sync-0.21.0 lib/canvas_sync/generators/templates/migrations/create_learning_outcomes.rb
canvas_sync-0.21.0.beta5 lib/canvas_sync/generators/templates/migrations/create_learning_outcomes.rb
canvas_sync-0.21.0.beta4 lib/canvas_sync/generators/templates/migrations/create_learning_outcomes.rb