Sha256: 975028e6bb67ec1f5ca88d395d7bc12a774c633800f92d440e37aceab39ed48f

Contents?: true

Size: 190 Bytes

Versions: 10

Compression:

Stored size: 190 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

10 entries across 10 versions & 1 rubygems

Version Path
disco_app-0.16.1.pre.sidekiq.pre.6.pre.release db/migrate/20170606160751_fix_disco_app_users_index.rb
disco_app-0.16.0 db/migrate/20170606160751_fix_disco_app_users_index.rb
disco_app-0.17.0 db/migrate/20170606160751_fix_disco_app_users_index.rb
disco_app-0.18.0 db/migrate/20170606160751_fix_disco_app_users_index.rb
disco_app-0.18.2 db/migrate/20170606160751_fix_disco_app_users_index.rb
disco_app-0.18.3 db/migrate/20170606160751_fix_disco_app_users_index.rb
disco_app-0.18.6 db/migrate/20170606160751_fix_disco_app_users_index.rb
disco_app-0.16.1 db/migrate/20170606160751_fix_disco_app_users_index.rb
disco_app-0.18.4 db/migrate/20170606160751_fix_disco_app_users_index.rb
disco_app-0.18.1 db/migrate/20170606160751_fix_disco_app_users_index.rb