Sha256: a299a87fa5b82535eb4ffaabf1fef588baa6a4e9517aa76ae1b0dfcff80d5353

Contents?: true

Size: 510 Bytes

Versions: 2

Compression:

Stored size: 510 Bytes

Contents

# <%= autogenerated_migration_warning %>

class CreateCourseNicknames < ActiveRecord::Migration[5.1]
  def change
    create_table :course_nicknames do |t|
      t.bigint :canvas_user_preference_value_id, null: false
      t.integer :canvas_user_id
      t.integer :canvas_course_id
      t.string :nickname

      t.timestamps
    end

    add_index :course_nicknames, :canvas_user_preference_value_id, unique: true
    add_index :course_nicknames, [:canvas_course_id, :canvas_user_id], unique: true
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
canvas_sync-0.19.1.beta1 lib/canvas_sync/generators/templates/migrations/create_course_nicknames.rb
canvas_sync-0.19.0 lib/canvas_sync/generators/templates/migrations/create_course_nicknames.rb