-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add module extra user fields (#426)
* Add extra user fields * Bump extra user fields * Update bundler version * Run bundle lock --add-platform x86_64-linux * Bump extra user fields * Run bundle lock --add-platform x86_64-linux * Bump gem to last commit * fix: add extra user fields in specs * lint: Fix rubocop offenses --------- Co-authored-by: Armand Fardeau <[email protected]> Co-authored-by: quentinchampenois <[email protected]>
- Loading branch information
1 parent
299fb12
commit b85984e
Showing
5 changed files
with
53 additions
and
8 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
12 changes: 12 additions & 0 deletions
12
...20230831093832_add_extra_user_fields_to_decidim_organization.decidim_extra_user_fields.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 @@ | ||
# frozen_string_literal: true | ||
# This migration comes from decidim_extra_user_fields (originally 20221024121407) | ||
|
||
class AddExtraUserFieldsToDecidimOrganization < ActiveRecord::Migration[6.0] | ||
def up | ||
add_column :decidim_organizations, :extra_user_fields, :jsonb, default: { "enabled" => false } | ||
end | ||
|
||
def down | ||
remove_column :decidim_organizations, :extra_user_fields, :jsonb | ||
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