Merge remote-tracking branch 'parent/main' into upstream-20240308
This commit is contained in:
commit
8e94ed2cec
204 changed files with 5112 additions and 1998 deletions
|
@ -20,7 +20,8 @@ class MigrateInteractionSettingsToPolicy < ActiveRecord::Migration[7.1]
|
|||
def up
|
||||
User.includes(account: :notification_policy).find_each do |user|
|
||||
deserialized_settings = Oj.load(user.attributes_before_type_cast['settings'])
|
||||
next unless deserialized_settings
|
||||
|
||||
next if deserialized_settings.nil?
|
||||
|
||||
policy = user.account.notification_policy || user.account.build_notification_policy
|
||||
requires_new_policy = false
|
||||
|
|
7
db/migrate/20240310123453_add_hint_to_rules.rb
Normal file
7
db/migrate/20240310123453_add_hint_to_rules.rb
Normal file
|
@ -0,0 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddHintToRules < ActiveRecord::Migration[7.1]
|
||||
def change
|
||||
add_column :rules, :hint, :text, null: false, default: ''
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue