Sha256: f0f2f25c03a9c0f690d400a2cca7e6cca861067a2f01d32ab93e2fb38486d744

Contents?: true

Size: 188 Bytes

Versions: 7

Compression:

Stored size: 188 Bytes

Contents

class FixDiscoAppUsersIndex < ActiveRecord::Migration[5.1]
  def change
    remove_index :disco_app_users, :shop_id
    add_index :disco_app_users, [:id, :shop_id], unique: true
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
disco_app-0.14.1 db/migrate/20170606160751_fix_disco_app_users_index.rb
disco_app-0.14.2 db/migrate/20170606160751_fix_disco_app_users_index.rb
disco_app-0.15.0 db/migrate/20170606160751_fix_disco_app_users_index.rb
disco_app-0.14.4 db/migrate/20170606160751_fix_disco_app_users_index.rb
disco_app-0.14.3 db/migrate/20170606160751_fix_disco_app_users_index.rb
disco_app-0.15.2 db/migrate/20170606160751_fix_disco_app_users_index.rb
disco_app-0.14.0 db/migrate/20170606160751_fix_disco_app_users_index.rb