-
Notifications
You must be signed in to change notification settings - Fork 4
Changed name dinsdag kring and remove woensdag kring #438
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
2e2f3d9
changed name dinsdag kring and remove woensdag kring
lodewiges 98e5d29
fixed lint
lodewiges 1acc086
Made migration
lodewiges 9a39f72
Merge branch 'staging' into feature/agenda-clean
lodewiges 787cb75
added quickpost to schema.rb
lodewiges 36b5620
Fixed Lint
lodewiges d9a6ea5
Rewrote migration
lodewiges 2211f20
Merge branch 'staging' into feature/agenda-clean
lodewiges e5cf8ff
Merge branch 'staging' into feature/agenda-clean
lodewiges 1d5070b
Merge branch 'staging' into feature/agenda-clean
lodewiges 2d69b0d
Trying to store catogories on the users table
lodewiges 886c4c1
Merge branch 'staging' into feature/agenda-clean
lodewiges 9b1f834
add genootschapen
lodewiges f779643
fix comma missing
lodewiges 9405292
fix so small inconsisties
lodewiges 3d557c7
Write logic to automatilly store categories
lodewiges bd9f04e
fix test & lint
lodewiges 3a95ea5
rewrote migration
lodewiges 303f332
Merge branch 'staging' into feature/agenda-clean
lodewiges 23db758
fix lint
lodewiges c5f7228
Merge branch 'staging' into feature/agenda-clean
lodewiges File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,19 @@ | ||
| class SimplyfingCalenderOptions < ActiveRecord::Migration[7.2] | ||
| # rubocop:disable Rails/SkipsModelValidations | ||
| def up | ||
| add_column :users, :ical_categories, :string, array: true, default: [] | ||
| Activity.where(category: 'dinsdagkring').update_all(category: 'kring') | ||
| Activity.where(category: 'woensdagkring').update_all(category: 'kring') | ||
| Activity.where(category: 'kiemgroepen').update_all(category: 'algemeen') | ||
| Activity.where(category: 'curiositates').update_all(category: 'algemeen') | ||
| end | ||
|
|
||
| def down | ||
| remove_column :users, :ical_categories | ||
| Activity.where(category: 'kring').update_all(category: 'dinsdagkring') | ||
| # NOTE: As mentioned before, reverting 'algemeen' to 'kiemgroepen' or 'curiositates' | ||
| # cannot be done reliably with `update_all` without additional information. | ||
| # The `down` migration here only addresses the 'kring' category. | ||
| end | ||
| # rubocop:enable Rails/SkipsModelValidations | ||
| end |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.