Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
32 kB
1
Indexable
Never
********** RAILS MIGRATIONS START **********
[+] Running 2/0
 ⠿ Container narrative-redis-1     Running                                                                                                                         0.0s
 ⠿ Container narrative-postgres-1  Running                                                                                                                         0.0s
/app/vendor/cache/ruby/2.7.0/gems/pry-byebug-3.8.0/lib/pry-byebug/control_d_handler.rb:5: warning: control_d_handler's arity of 2 parameters was deprecated (eval_string, pry_instance). Now it gets passed just 1 parameter (pry_instance)
== 20211105152320 MigrateSourcesSetCredentials: migrating =====================
== 20211105152320 MigrateSourcesSetCredentials: migrated (0.0000s) ============

== 20211108170122 MigrateConnectionsSync: migrating ===========================
== 20211108170122 MigrateConnectionsSync: migrated (0.0000s) ==================

== 20220124398439 MigrateCreateCompanies: migrating ===========================
== 20220124398439 MigrateCreateCompanies: migrated (0.0000s) ==================

== 20220208075813 UpdateTeamStageChangedEvent: migrating ======================
== 20220208075813 UpdateTeamStageChangedEvent: migrated (0.0000s) =============

== 20220319122912 DisableAllDestinationsSsl: migrating ========================
== 20220319122912 DisableAllDestinationsSsl: migrated (0.0000s) ===============

== 20220425100446 AddHasDataFromToAllSources: migrating =======================
== 20220425100446 AddHasDataFromToAllSources: migrated (0.0000s) ==============

== 20220510131112 AddFullySyncedToAllConnections: migrating ===================
== 20220510131112 AddFullySyncedToAllConnections: migrated (0.0000s) ==========

== 20220516111355 SyncUserTimezonesWithinATeam: migrating =====================
== 20220516111355 SyncUserTimezonesWithinATeam: migrated (0.0000s) ============

== 20220516122149 ChangeGa3SourceToLocalImage: migrating ======================
== 20220516122149 ChangeGa3SourceToLocalImage: migrated (0.0000s) =============

== 20220531160356 CreateOauthentications: migrating ===========================
-- create_table(:oauthentications, {:id=>:uuid, :default=>#<Proc:0x000055c901f18bd0 /app/db/migrate/20220531160356_create_oauthentications.rb:3 (lambda)>})
   -> 0.0254s
== 20220531160356 CreateOauthentications: migrated (0.0339s) ==================

== 20220603103107 InitialSchemaDump: migrating ================================
== 20220603103107 InitialSchemaDump: migrated (0.0000s) =======================

== 20220624092640 AddAvatarUrlToAuthentications: migrating ====================
-- add_column(:oauthentications, :avatar_url, :string)
   -> 0.0014s
== 20220624092640 AddAvatarUrlToAuthentications: migrated (0.0095s) ===========

== 20220708112021 CreateMaintenanceTasksRuns: migrating =======================
-- create_table(:maintenance_tasks_runs)
   -> 0.0427s
== 20220708112021 CreateMaintenanceTasksRuns: migrated (0.0493s) ==============

== 20220708112022 RemoveIndexOnTaskName: migrating ============================
-- change_table(:maintenance_tasks_runs)
   -> 0.0061s
== 20220708112022 RemoveIndexOnTaskName: migrated (0.0113s) ===================

== 20220708112023 AddArgumentsToMaintenanceTasksRuns: migrating ===============
-- add_column(:maintenance_tasks_runs, :arguments, :text)
   -> 0.0040s
== 20220708112023 AddArgumentsToMaintenanceTasksRuns: migrated (0.0127s) ======

== 20220708112024 AddLockVersionToMaintenanceTasksRuns: migrating =============
-- add_column(:maintenance_tasks_runs, :lock_version, :integer, {:default=>0, :null=>false})
   -> 0.0044s
== 20220708112024 AddLockVersionToMaintenanceTasksRuns: migrated (0.0163s) ====

== 20220714224715 AddMissingUniqIndexOnOauthentication: migrating =============
-- add_index(:oauthentications, [:eid, :provider, :user_id], {:unique=>true})
   -> 0.0145s
== 20220714224715 AddMissingUniqIndexOnOauthentication: migrated (0.0324s) ====

== 20220714230303 AddExpiresAtColumnToOauthentications: migrating =============
-- add_column(:oauthentications, :expires_at, :datetime)
   -> 0.0044s
== 20220714230303 AddExpiresAtColumnToOauthentications: migrated (0.0243s) ====

== 20220714230419 RemoveUnusedColumnFromOauthentications: migrating ===========
-- rename_column(:oauthentications, :expires_in, :expires_in_removed)
   -> 0.0046s
== 20220714230419 RemoveUnusedColumnFromOauthentications: migrated (0.0171s) ==

== 20220715135406 CreatePlans: migrating ======================================
-- create_table(:plans, {:id=>:uuid})
   -> 0.0223s
== 20220715135406 CreatePlans: migrated (0.0299s) =============================

== 20220718212642 CreateSubscriptions: migrating ==============================
-- create_table(:subscriptions, {:id=>:uuid})
   -> 0.0425s
== 20220718212642 CreateSubscriptions: migrated (0.0577s) =====================

== 20220720093414 CreateCheckoutSessions: migrating ===========================
-- create_table(:checkout_sessions, {:id=>:uuid})
   -> 0.0215s
== 20220720093414 CreateCheckoutSessions: migrated (0.0283s) ==================

== 20220720202832 AddProviderToSources: migrating =============================
-- add_column(:sources, :provider, :text)
   -> 0.0024s
== 20220720202832 AddProviderToSources: migrated (0.0217s) ====================

== 20220727121921 CreateEnterprisePlanConfigs: migrating ======================
-- create_table(:enterprise_plan_configs, {:id=>:uuid})
   -> 0.0077s
== 20220727121921 CreateEnterprisePlanConfigs: migrated (0.0332s) =============

== 20220728180236 RemoveEmailConstrainOnOauthentications: migrating ===========
-- change_column_null(:oauthentications, :email, true)
   -> 0.0040s
== 20220728180236 RemoveEmailConstrainOnOauthentications: migrated (0.0335s) ==

== 20220728185447 AddAccountNameToOauthentications: migrating =================
-- add_column(:oauthentications, :account_name, :string)
   -> 0.0036s
== 20220728185447 AddAccountNameToOauthentications: migrated (0.0134s) ========

== 20220729120214 AddMonthlySessionsCountToCompanies: migrating ===============
-- add_column(:companies, :monthly_sessions_count, :bigint, {:default=>0})
   -> 0.0036s
== 20220729120214 AddMonthlySessionsCountToCompanies: migrated (0.0201s) ======

== 20220801091117 AddCurrentPeriodToSubscriptions: migrating ==================
-- add_column(:subscriptions, :current_period_start, :bigint)
   -> 0.0014s
-- add_column(:subscriptions, :current_period_end, :bigint)
   -> 0.0014s
== 20220801091117 AddCurrentPeriodToSubscriptions: migrated (0.0138s) =========

== 20220803140614 AddSourceDestinationIndexToConnections: migrating ===========
-- add_index(:connections, [:source_id], {:unique=>true})
   -> 0.0060s
-- add_index(:connections, [:destination_id], {:unique=>true})
   -> 0.0112s
== 20220803140614 AddSourceDestinationIndexToConnections: migrated (0.0338s) ==

== 20220805114434 CreateTrackingPages: migrating ==============================
-- create_table(:tracking_pages, {:id=>:uuid})
   -> 0.0465s
== 20220805114434 CreateTrackingPages: migrated (0.0611s) =====================

== 20220808142451 AddAnnualPriceToPlans: migrating ============================
-- add_column(:plans, :annual_monthly_price, :integer)
   -> 0.0021s
== 20220808142451 AddAnnualPriceToPlans: migrated (0.0077s) ===================

== 20220808152456 AddUniqueIndexForPlanType: migrating ========================
-- add_index(:plans, :plan_type, {:unique=>true, :algorithm=>:concurrently})
   -> 0.0104s
== 20220808152456 AddUniqueIndexForPlanType: migrated (0.0188s) ===============

== 20220808154820 AddAnnualStripePaymentLinkToPlans: migrating ================
-- add_column(:plans, :annual_stripe_payment_link, :string)
   -> 0.0030s
== 20220808154820 AddAnnualStripePaymentLinkToPlans: migrated (0.0148s) =======

== 20220808213541 CreateUsersCompanyRoles: migrating ==========================
-- create_table(:users_company_roles, {:id=>:uuid})
   -> 0.0361s
== 20220808213541 CreateUsersCompanyRoles: migrated (0.0540s) =================

== 20220812113621 AddForeignKeysForSubscrionsRelations: migrating =============
-- add_foreign_key(:subscriptions, :companies, {:column=>:company_id, :type=>:uuid, :validate=>false})
   -> 0.0023s
-- add_foreign_key(:subscriptions, :plans, {:column=>:plan_id, :type=>:uuid, :validate=>false})
   -> 0.0019s
== 20220812113621 AddForeignKeysForSubscrionsRelations: migrated (0.0178s) ====

== 20220812142325 ValidateAddForeignKeysForSubscrionsRelations: migrating =====
-- validate_foreign_key(:subscriptions, :companies)
   -> 0.0062s
-- validate_foreign_key(:subscriptions, :plans)
   -> 0.0088s
== 20220812142325 ValidateAddForeignKeysForSubscrionsRelations: migrated (0.0341s)

== 20220907100548 AddRoleToTeamUsers: migrating ===============================
-- add_column(:team_users, :role, :string, {:null=>false, :default=>"teammate"})
   -> 0.0062s
== 20220907100548 AddRoleToTeamUsers: migrated (0.0179s) ======================

== 20220912174710 AddInviteeRoleToInvites: migrating ==========================
-- add_column(:invites, :invitee_role, :string, {:null=>false, :default=>"teammate"})
   -> 0.0059s
== 20220912174710 AddInviteeRoleToInvites: migrated (0.7378s) =================

== 20220913121445 AddSelectedReportsToUsers: migrating ========================
-- add_column(:users, :selected_reports, :string, {:array=>true, :default=>["WEEKLY", "MONTHLY"], :null=>false})
   -> 0.0021s
== 20220913121445 AddSelectedReportsToUsers: migrated (0.0100s) ===============

== 20220913131010 RemoveNullConstaintForCreateInTrackingPages: migrating ======
-- change_column_null(:tracking_pages, :creator_id, true)
   -> 0.0051s
== 20220913131010 RemoveNullConstaintForCreateInTrackingPages: migrated (0.0198s)

== 20220916154230 CreateMetricConfigs: migrating ==============================
-- create_table(:metric_configs, {:id=>:uuid, :default=>#<Proc:0x000055c901f86860 /app/db/migrate/20220916154230_create_metric_configs.rb:3 (lambda)>})
   -> 0.0270s
-- add_foreign_key(:metric_configs, :sources, {:column=>:source_id, :on_delete=>:cascade, :validate=>false})
   -> 0.0023s
-- add_index(:metric_configs, [:metric, :source_id], {:unique=>true})
   -> 0.0072s
== 20220916154230 CreateMetricConfigs: migrated (0.0539s) =====================

== 20220921114628 RenameTeamUsersRolesToRolesRemoved: migrating ===============
-- rename_column(:team_users, :roles, :roles_removed)
   -> 0.0030s
== 20220921114628 RenameTeamUsersRolesToRolesRemoved: migrated (0.0141s) ======

== Data =======================================================================
== 20211105152320 MigrateSourcesSetCredentialsData: migrating =================
== 20211105152320 MigrateSourcesSetCredentialsData: migrated (0.1184s) ========

== Data =======================================================================
== 20211108170122 MigrateConnectionsSyncData: migrating =======================
== 20211108170122 MigrateConnectionsSyncData: migrated (0.0000s) ==============

== Data =======================================================================
== 20220124398439 MigrateCreateCompaniesData: migrating =======================
== 20220124398439 MigrateCreateCompaniesData: migrated (0.1472s) ==============

== Data =======================================================================
== 20220208075813 UpdateTeamStageChangedEventData: migrating ==================
== 20220208075813 UpdateTeamStageChangedEventData: migrated (0.1435s) =========

== Data =======================================================================
== 20220319122912 DisableAllDestinationsSslData: migrating ====================
== 20220319122912 DisableAllDestinationsSslData: migrated (0.0460s) ===========

== Data =======================================================================
== 20220425100446 AddHasDataFromToAllSourcesData: migrating ===================
== 20220425100446 AddHasDataFromToAllSourcesData: migrated (0.0077s) ==========

== Data =======================================================================
== 20220510131112 AddFullySyncedToAllConnectionsData: migrating ===============
== 20220510131112 AddFullySyncedToAllConnectionsData: migrated (0.0377s) ======

== Data =======================================================================
== 20220516111355 SyncUserTimezonesWithinATeamData: migrating =================
== 20220516111355 SyncUserTimezonesWithinATeamData: migrated (0.0001s) ========

== Data =======================================================================
== 20220516122149 ChangeGa3SourceToLocalImageData: migrating ==================
== 20220516122149 ChangeGa3SourceToLocalImageData: migrated (0.0033s) =========

== Data =======================================================================
== 20220708150656 FixSourcesMeta: migrating ===================================
== 20220708150656 FixSourcesMeta: migrated (0.0098s) ==========================

== Data =======================================================================
== 20220718141038 FillPlans: migrating ========================================
== 20220718141038 FillPlans: migrated (0.0061s) ===============================

== Data =======================================================================
== 20220718213001 SetFreePlanForEveryCompany: migrating =======================
== 20220718213001 SetFreePlanForEveryCompany: migrated (0.0071s) ==============

== Data =======================================================================
== 20220720202949 SetCurrentProviderToGoogle: migrating =======================
== 20220720202949 SetCurrentProviderToGoogle: migrated (0.0104s) ==============

== Data =======================================================================
== 20220803091837 FixEmptyTeamUsersRoles: migrating ===========================
rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:

can't cast Array
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/connection_adapters/abstract/quoting.rb:34:in `rescue in type_cast'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/connection_adapters/abstract/quoting.rb:24:in `type_cast'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/connection_adapters/abstract/quoting.rb:203:in `block in type_casted_binds'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/connection_adapters/abstract/quoting.rb:203:in `map'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/connection_adapters/abstract/quoting.rb:203:in `type_casted_binds'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/connection_adapters/postgresql_adapter.rb:672:in `exec_no_cache'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/connection_adapters/postgresql_adapter.rb:656:in `execute_and_clear'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/connection_adapters/postgresql/database_statements.rb:111:in `exec_delete'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/connection_adapters/abstract/database_statements.rb:174:in `update'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/connection_adapters/abstract/query_cache.rb:22:in `update'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/relation.rb:469:in `update_all'
/app/db/data/20220803091837_fix_empty_team_users_roles.rb:7:in `up'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/migration.rb:831:in `exec_migration'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/migration.rb:812:in `block (2 levels) in migrate'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/migration.rb:811:in `block in migrate'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:471:in `with_connection'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/migration.rb:810:in `migrate'
/app/vendor/cache/ruby/2.7.0/gems/strong_migrations-1.2.0/lib/strong_migrations/migration.rb:5:in `migrate'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/migration.rb:1002:in `migrate'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/migration.rb:1310:in `block in execute_migration_in_transaction'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/migration.rb:1361:in `block in ddl_transaction'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/connection_adapters/abstract/database_statements.rb:280:in `block in transaction'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/connection_adapters/abstract/transaction.rb:280:in `block in within_new_transaction'
/app/vendor/cache/ruby/2.7.0/gems/activesupport-6.0.3.6/lib/active_support/concurrency/load_interlock_aware_monitor.rb:26:in `block (2 levels) in synchronize'
/app/vendor/cache/ruby/2.7.0/gems/activesupport-6.0.3.6/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
/app/vendor/cache/ruby/2.7.0/gems/activesupport-6.0.3.6/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
/app/vendor/cache/ruby/2.7.0/gems/activesupport-6.0.3.6/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
/app/vendor/cache/ruby/2.7.0/gems/activesupport-6.0.3.6/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/connection_adapters/abstract/transaction.rb:278:in `within_new_transaction'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/connection_adapters/abstract/database_statements.rb:280:in `transaction'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/transactions.rb:212:in `transaction'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/migration.rb:1361:in `ddl_transaction'
/app/vendor/cache/ruby/2.7.0/gems/strong_migrations-1.2.0/lib/strong_migrations/migrator.rb:4:in `ddl_transaction'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/migration.rb:1309:in `execute_migration_in_transaction'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/migration.rb:1268:in `run_without_lock'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/migration.rb:1221:in `block in run'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/migration.rb:1382:in `with_advisory_lock'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/migration.rb:1221:in `run'
/app/vendor/cache/ruby/2.7.0/gems/data_migrate-8.0.0/lib/data_migrate/migration_context.rb:29:in `run'
/app/vendor/cache/ruby/2.7.0/gems/data_migrate-8.0.0/lib/data_migrate/data_migrator_five.rb:70:in `run'
/app/vendor/cache/ruby/2.7.0/gems/data_migrate-8.0.0/tasks/databases.rake:330:in `run_migration'
/app/vendor/cache/ruby/2.7.0/gems/data_migrate-8.0.0/tasks/databases.rake:49:in `block (4 levels) in <main>'
/app/vendor/cache/ruby/2.7.0/gems/data_migrate-8.0.0/tasks/databases.rake:48:in `each'
/app/vendor/cache/ruby/2.7.0/gems/data_migrate-8.0.0/tasks/databases.rake:48:in `block (3 levels) in <main>'
/app/vendor/cache/ruby/2.7.0/gems/sentry-ruby-core-5.3.1/lib/sentry/rake.rb:26:in `execute'
/usr/local/bundle/gems/rake-13.0.3/exe/rake:27:in `<top (required)>'

Caused by:
TypeError: can't cast Array
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/connection_adapters/abstract/quoting.rb:34:in `rescue in type_cast'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/connection_adapters/abstract/quoting.rb:24:in `type_cast'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/connection_adapters/abstract/quoting.rb:203:in `block in type_casted_binds'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/connection_adapters/abstract/quoting.rb:203:in `map'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/connection_adapters/abstract/quoting.rb:203:in `type_casted_binds'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/connection_adapters/postgresql_adapter.rb:672:in `exec_no_cache'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/connection_adapters/postgresql_adapter.rb:656:in `execute_and_clear'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/connection_adapters/postgresql/database_statements.rb:111:in `exec_delete'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/connection_adapters/abstract/database_statements.rb:174:in `update'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/connection_adapters/abstract/query_cache.rb:22:in `update'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/relation.rb:469:in `update_all'
/app/db/data/20220803091837_fix_empty_team_users_roles.rb:7:in `up'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/migration.rb:831:in `exec_migration'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/migration.rb:812:in `block (2 levels) in migrate'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/migration.rb:811:in `block in migrate'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:471:in `with_connection'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/migration.rb:810:in `migrate'
/app/vendor/cache/ruby/2.7.0/gems/strong_migrations-1.2.0/lib/strong_migrations/migration.rb:5:in `migrate'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/migration.rb:1002:in `migrate'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/migration.rb:1310:in `block in execute_migration_in_transaction'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/migration.rb:1361:in `block in ddl_transaction'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/connection_adapters/abstract/database_statements.rb:280:in `block in transaction'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/connection_adapters/abstract/transaction.rb:280:in `block in within_new_transaction'
/app/vendor/cache/ruby/2.7.0/gems/activesupport-6.0.3.6/lib/active_support/concurrency/load_interlock_aware_monitor.rb:26:in `block (2 levels) in synchronize'
/app/vendor/cache/ruby/2.7.0/gems/activesupport-6.0.3.6/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
/app/vendor/cache/ruby/2.7.0/gems/activesupport-6.0.3.6/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
/app/vendor/cache/ruby/2.7.0/gems/activesupport-6.0.3.6/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
/app/vendor/cache/ruby/2.7.0/gems/activesupport-6.0.3.6/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/connection_adapters/abstract/transaction.rb:278:in `within_new_transaction'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/connection_adapters/abstract/database_statements.rb:280:in `transaction'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/transactions.rb:212:in `transaction'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/migration.rb:1361:in `ddl_transaction'
/app/vendor/cache/ruby/2.7.0/gems/strong_migrations-1.2.0/lib/strong_migrations/migrator.rb:4:in `ddl_transaction'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/migration.rb:1309:in `execute_migration_in_transaction'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/migration.rb:1268:in `run_without_lock'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/migration.rb:1221:in `block in run'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/migration.rb:1382:in `with_advisory_lock'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/migration.rb:1221:in `run'
/app/vendor/cache/ruby/2.7.0/gems/data_migrate-8.0.0/lib/data_migrate/migration_context.rb:29:in `run'
/app/vendor/cache/ruby/2.7.0/gems/data_migrate-8.0.0/lib/data_migrate/data_migrator_five.rb:70:in `run'
/app/vendor/cache/ruby/2.7.0/gems/data_migrate-8.0.0/tasks/databases.rake:330:in `run_migration'
/app/vendor/cache/ruby/2.7.0/gems/data_migrate-8.0.0/tasks/databases.rake:49:in `block (4 levels) in <main>'
/app/vendor/cache/ruby/2.7.0/gems/data_migrate-8.0.0/tasks/databases.rake:48:in `each'
/app/vendor/cache/ruby/2.7.0/gems/data_migrate-8.0.0/tasks/databases.rake:48:in `block (3 levels) in <main>'
/app/vendor/cache/ruby/2.7.0/gems/sentry-ruby-core-5.3.1/lib/sentry/rake.rb:26:in `execute'
/usr/local/bundle/gems/rake-13.0.3/exe/rake:27:in `<top (required)>'

Caused by:
TypeError: TypeError
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/connection_adapters/abstract/quoting.rb:246:in `_type_cast'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/connection_adapters/postgresql/quoting.rb:162:in `_type_cast'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/connection_adapters/abstract/quoting.rb:31:in `type_cast'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/connection_adapters/abstract/quoting.rb:203:in `block in type_casted_binds'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/connection_adapters/abstract/quoting.rb:203:in `map'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/connection_adapters/abstract/quoting.rb:203:in `type_casted_binds'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/connection_adapters/postgresql_adapter.rb:672:in `exec_no_cache'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/connection_adapters/postgresql_adapter.rb:656:in `execute_and_clear'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/connection_adapters/postgresql/database_statements.rb:111:in `exec_delete'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/connection_adapters/abstract/database_statements.rb:174:in `update'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/connection_adapters/abstract/query_cache.rb:22:in `update'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/relation.rb:469:in `update_all'
/app/db/data/20220803091837_fix_empty_team_users_roles.rb:7:in `up'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/migration.rb:831:in `exec_migration'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/migration.rb:812:in `block (2 levels) in migrate'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/migration.rb:811:in `block in migrate'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:471:in `with_connection'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/migration.rb:810:in `migrate'
/app/vendor/cache/ruby/2.7.0/gems/strong_migrations-1.2.0/lib/strong_migrations/migration.rb:5:in `migrate'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/migration.rb:1002:in `migrate'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/migration.rb:1310:in `block in execute_migration_in_transaction'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/migration.rb:1361:in `block in ddl_transaction'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/connection_adapters/abstract/database_statements.rb:280:in `block in transaction'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/connection_adapters/abstract/transaction.rb:280:in `block in within_new_transaction'
/app/vendor/cache/ruby/2.7.0/gems/activesupport-6.0.3.6/lib/active_support/concurrency/load_interlock_aware_monitor.rb:26:in `block (2 levels) in synchronize'
/app/vendor/cache/ruby/2.7.0/gems/activesupport-6.0.3.6/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
/app/vendor/cache/ruby/2.7.0/gems/activesupport-6.0.3.6/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
/app/vendor/cache/ruby/2.7.0/gems/activesupport-6.0.3.6/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
/app/vendor/cache/ruby/2.7.0/gems/activesupport-6.0.3.6/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/connection_adapters/abstract/transaction.rb:278:in `within_new_transaction'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/connection_adapters/abstract/database_statements.rb:280:in `transaction'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/transactions.rb:212:in `transaction'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/migration.rb:1361:in `ddl_transaction'
/app/vendor/cache/ruby/2.7.0/gems/strong_migrations-1.2.0/lib/strong_migrations/migrator.rb:4:in `ddl_transaction'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/migration.rb:1309:in `execute_migration_in_transaction'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/migration.rb:1268:in `run_without_lock'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/migration.rb:1221:in `block in run'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/migration.rb:1382:in `with_advisory_lock'
/app/vendor/cache/ruby/2.7.0/gems/activerecord-6.0.3.6/lib/active_record/migration.rb:1221:in `run'
/app/vendor/cache/ruby/2.7.0/gems/data_migrate-8.0.0/lib/data_migrate/migration_context.rb:29:in `run'
/app/vendor/cache/ruby/2.7.0/gems/data_migrate-8.0.0/lib/data_migrate/data_migrator_five.rb:70:in `run'
/app/vendor/cache/ruby/2.7.0/gems/data_migrate-8.0.0/tasks/databases.rake:330:in `run_migration'
/app/vendor/cache/ruby/2.7.0/gems/data_migrate-8.0.0/tasks/databases.rake:49:in `block (4 levels) in <main>'
/app/vendor/cache/ruby/2.7.0/gems/data_migrate-8.0.0/tasks/databases.rake:48:in `each'
/app/vendor/cache/ruby/2.7.0/gems/data_migrate-8.0.0/tasks/databases.rake:48:in `block (3 levels) in <main>'
/app/vendor/cache/ruby/2.7.0/gems/sentry-ruby-core-5.3.1/lib/sentry/rake.rb:26:in `execute'
/usr/local/bundle/gems/rake-13.0.3/exe/rake:27:in `<top (required)>'
Tasks: TOP => db:migrate:with_data
(See full trace by running task with --trace)
ERROR: Command 'dip migrate' executed with error