Sha256: 4106b2b13cf9b9fbde39c2c600d9a049e95cb7456514748d42265f8900bc0e1b

Contents?: true

Size: 473 Bytes

Versions: 81

Compression:

Stored size: 473 Bytes

Contents

# <%= autogenerated_migration_warning %>

class CreateUserObservers < ActiveRecord::Migration[5.1]
  def change
    create_table :user_observers do |t|
      t.bigint :observing_user_id
      t.bigint :observed_user_id
      t.string :workflow_state

      t.timestamps
    end

    add_index :user_observers, [:observed_user_id, :observing_user_id], unique: true
    add_index :user_observers, :observing_user_id
    add_index :user_observers, :observed_user_id
  end
end

Version data entries

81 entries across 81 versions & 1 rubygems

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