-
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.
712 add priority rank to category_relationship table. Return categori…
…es in order on category#subcategories action
- Loading branch information
Brian Schroer
committed
Jun 13, 2023
1 parent
9a87952
commit 19ed741
Showing
3 changed files
with
21 additions
and
2 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
6 changes: 6 additions & 0 deletions
6
db/migrate/20230609201040_add_child_priority_rank_column_to_category_relationships.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 AddChildPriorityRankColumnToCategoryRelationships < ActiveRecord::Migration[6.1] | ||
def change | ||
add_column :category_relationships, :child_priority_rank, :integer | ||
add_index(:category_relationships, [:child_id, :parent_id], :unique => true) | ||
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