forked from solidusio/solidus
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request solidusio#5833 from MadelineCollier/add-role-colum…
…ns-validations [Admin] Add new migrations and validations in `core` to support new `admin` `Spree::Role` interface
- Loading branch information
Showing
4 changed files
with
24 additions
and
1 deletion.
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
9 changes: 9 additions & 0 deletions
9
core/db/migrate/20240821173254_create_spree_permission_sets_in_core.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 CreateSpreePermissionSetsInCore < ActiveRecord::Migration[7.0] | ||
def change | ||
create_table :spree_permission_sets, if_not_exists: true do |t| | ||
t.string :name | ||
t.string :set | ||
t.timestamps null: false | ||
end | ||
end | ||
end |
9 changes: 9 additions & 0 deletions
9
core/db/migrate/20240821173341_create_spree_roles_permissions_in_core.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 CreateSpreeRolesPermissionsInCore < ActiveRecord::Migration[7.0] | ||
def change | ||
create_table :spree_role_permissions, if_not_exists: true do |t| | ||
t.references :role | ||
t.references :permission_set | ||
t.timestamps null: false | ||
end | ||
end | ||
end |
5 changes: 5 additions & 0 deletions
5
core/db/migrate/20240821173641_add_description_to_spree_roles.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,5 @@ | ||
class AddDescriptionToSpreeRoles < ActiveRecord::Migration[7.0] | ||
def change | ||
add_column :spree_roles, :description, :text | ||
end | ||
end |