-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
1,475 additions
and
816 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
db/migrate/20231027174453_add_unique_index_to_accepts_on_item_id.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
class AddUniqueIndexToAcceptsOnItemId < ActiveRecord::Migration[6.1] | ||
def change | ||
remove_index :accepts, :item_id | ||
add_index :accepts, :item_id, unique: true | ||
|
||
remove_index :withdraws, :item_id | ||
add_index :withdraws, :item_id, unique: true | ||
end | ||
end |
12 changes: 12 additions & 0 deletions
12
db/migrate/20231027174830_add_unique_index_to_checked_items_on_basket_id_and_item_id.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
class AddUniqueIndexToCheckedItemsOnBasketIdAndItemId < ActiveRecord::Migration[6.1] | ||
def change | ||
remove_index :checked_items, :item_id | ||
add_index :checked_items, [:item_id, :basket_id], unique: true | ||
|
||
remove_index :checkins, :item_id | ||
add_index :checkins, [:item_id, :basket_id], unique: true | ||
|
||
remove_index :checkouts, [:item_id, :basket_id] | ||
add_index :checkouts, [:item_id, :basket_id, :user_id], unique: true | ||
end | ||
end |
6 changes: 6 additions & 0 deletions
6
db/migrate/20231027175439_add_unique_index_to_libraries_on_name.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
class AddUniqueIndexToLibrariesOnName < ActiveRecord::Migration[6.1] | ||
def change | ||
add_index :libraries, :name, unique: true | ||
add_index :libraries, :isil, unique: true, where: "isil != '' AND isil IS NOT NULL" | ||
end | ||
end |
6 changes: 6 additions & 0 deletions
6
db/migrate/20231027175624_add_unique_index_to_items_on_item_identifier.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
class AddUniqueIndexToItemsOnItemIdentifier < ActiveRecord::Migration[6.1] | ||
def change | ||
remove_index :items, :item_identifier | ||
add_index :items, :item_identifier, unique: true, where: "item_identifier != '' AND item_identifier IS NOT NULL" | ||
end | ||
end |
9 changes: 9 additions & 0 deletions
9
...nique_index_to_carrier_type_has_checkout_types_on_carrier_type_id_and_checkout_type_id.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
class AddUniqueIndexToCarrierTypeHasCheckoutTypesOnCarrierTypeIdAndCheckoutTypeId < ActiveRecord::Migration[6.1] | ||
def change | ||
remove_index :carrier_type_has_checkout_types, :carrier_type_id | ||
add_index :carrier_type_has_checkout_types, [:carrier_type_id, :checkout_type_id], unique: true, name: 'index_carrier_type_has_checkout_types_on_carrier_type_id' | ||
|
||
remove_index :user_group_has_checkout_types, :user_group_id | ||
add_index :user_group_has_checkout_types, [:user_group_id, :checkout_type_id], unique: true, name: 'index_user_group_has_checkout_types_on_user_group_id' | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
version: '3.8' | ||
|
||
services: | ||
web: | ||
environment: | ||
- WEBPACKER_DEV_SERVER_HOST=webpacker | ||
- SELENIUM_DRIVER_URL=http://selenium:4444/wd/hub | ||
|
||
selenium: | ||
image: selenium/standalone-chrome:114.0 | ||
networks: | ||
internal: | ||
expose: | ||
- 4444 | ||
- 7900 | ||
- 5900 | ||
shm_size: 2gb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.