Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
24 kB
2
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)
== Schema =====================================================================
== 20211105152320 MigrateSourcesSetCredentials: migrating =====================
== 20211105152320 MigrateSourcesSetCredentials: migrated (0.0000s) ============

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

== Schema =====================================================================
== 20220624092640 AddAvatarUrlToAuthentications: migrating ====================
-- add_column(:oauthentications, :avatar_url, :string)
   -> 0.0032s
== 20220624092640 AddAvatarUrlToAuthentications: migrated (0.0141s) ===========

== Schema =====================================================================
== 20220708112021 CreateMaintenanceTasksRuns: migrating =======================
-- create_table(:maintenance_tasks_runs)
   -> 0.0358s
== 20220708112021 CreateMaintenanceTasksRuns: migrated (0.0450s) ==============

== Schema =====================================================================
== 20220708112022 RemoveIndexOnTaskName: migrating ============================
-- change_table(:maintenance_tasks_runs)
   -> 0.0084s
== 20220708112022 RemoveIndexOnTaskName: migrated (0.0199s) ===================

== Schema =====================================================================
== 20220708112023 AddArgumentsToMaintenanceTasksRuns: migrating ===============
-- add_column(:maintenance_tasks_runs, :arguments, :text)
   -> 0.0053s
== 20220708112023 AddArgumentsToMaintenanceTasksRuns: migrated (0.0115s) ======

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

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

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

== Schema =====================================================================
== 20220714230303 AddExpiresAtColumnToOauthentications: migrating =============
-- add_column(:oauthentications, :expires_at, :datetime)
   -> 0.0058s
== 20220714230303 AddExpiresAtColumnToOauthentications: migrated (0.0179s) ====

== Schema =====================================================================
== 20220714230419 RemoveUnusedColumnFromOauthentications: migrating ===========
-- rename_column(:oauthentications, :expires_in, :expires_in_removed)
   -> 0.0087s
== 20220714230419 RemoveUnusedColumnFromOauthentications: migrated (0.0226s) ==

== Schema =====================================================================
== 20220715135406 CreatePlans: migrating ======================================
-- create_table(:plans, {:id=>:uuid})
   -> 0.0155s
== 20220715135406 CreatePlans: migrated (0.0351s) =============================

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

== Schema =====================================================================
== 20220718212642 CreateSubscriptions: migrating ==============================
-- create_table(:subscriptions, {:id=>:uuid})
   -> 0.0432s
== 20220718212642 CreateSubscriptions: migrated (0.0557s) =====================

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

== Schema =====================================================================
== 20220720093414 CreateCheckoutSessions: migrating ===========================
-- create_table(:checkout_sessions, {:id=>:uuid})
   -> 0.0153s
== 20220720093414 CreateCheckoutSessions: migrated (0.0210s) ==================

== Schema =====================================================================
== 20220720202832 AddProviderToSources: migrating =============================
-- add_column(:sources, :provider, :text)
   -> 0.0057s
== 20220720202832 AddProviderToSources: migrated (0.0141s) ====================

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

== Schema =====================================================================
== 20220727121921 CreateEnterprisePlanConfigs: migrating ======================
-- create_table(:enterprise_plan_configs, {:id=>:uuid})
   -> 0.0097s
== 20220727121921 CreateEnterprisePlanConfigs: migrated (0.0157s) =============

== Schema =====================================================================
== 20220728180236 RemoveEmailConstrainOnOauthentications: migrating ===========
-- change_column_null(:oauthentications, :email, true)
   -> 0.0025s
== 20220728180236 RemoveEmailConstrainOnOauthentications: migrated (0.0128s) ==

== Schema =====================================================================
== 20220728185447 AddAccountNameToOauthentications: migrating =================
-- add_column(:oauthentications, :account_name, :string)
   -> 0.0041s
== 20220728185447 AddAccountNameToOauthentications: migrated (0.0150s) ========

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

== Schema =====================================================================
== 20220801091117 AddCurrentPeriodToSubscriptions: migrating ==================
-- add_column(:subscriptions, :current_period_start, :bigint)
   -> 0.0020s
-- add_column(:subscriptions, :current_period_end, :bigint)
   -> 0.0019s
== 20220801091117 AddCurrentPeriodToSubscriptions: migrated (0.0167s) =========

== Data =======================================================================
== 20220803091837 FixEmptyTeamUsersRoles: migrating ===========================
== 20220803091837 FixEmptyTeamUsersRoles: migrated (0.4771s) ==================

== Data =======================================================================
== 20220803140540 RemoveDuplicatedConnection: migrating =======================
== 20220803140540 RemoveDuplicatedConnection: migrated (0.0123s) ==============

== Schema =====================================================================
== 20220803140614 AddSourceDestinationIndexToConnections: migrating ===========
-- add_index(:connections, [:source_id], {:unique=>true})
   -> 0.0221s
-- add_index(:connections, [:destination_id], {:unique=>true})
   -> 0.0242s
== 20220803140614 AddSourceDestinationIndexToConnections: migrated (0.0782s) ==

== Schema =====================================================================
== 20220805114434 CreateTrackingPages: migrating ==============================
-- create_table(:tracking_pages, {:id=>:uuid})
   -> 0.0613s
== 20220805114434 CreateTrackingPages: migrated (0.0730s) =====================

== Schema =====================================================================
== 20220808142451 AddAnnualPriceToPlans: migrating ============================
-- add_column(:plans, :annual_monthly_price, :integer)
   -> 0.0035s
== 20220808142451 AddAnnualPriceToPlans: migrated (0.0132s) ===================

== Data =======================================================================
== 20220808143701 FillPlansAnnualPrice: migrating =============================
== 20220808143701 FillPlansAnnualPrice: migrated (0.0889s) ====================

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

== Schema =====================================================================
== 20220808154820 AddAnnualStripePaymentLinkToPlans: migrating ================
-- add_column(:plans, :annual_stripe_payment_link, :string)
   -> 0.0045s
== 20220808154820 AddAnnualStripePaymentLinkToPlans: migrated (0.0142s) =======

== Data =======================================================================
== 20220808154900 FillPlansAnnualPaymentLinks: migrating ======================
== 20220808154900 FillPlansAnnualPaymentLinks: migrated (0.0226s) =============

== Schema =====================================================================
== 20220808213541 CreateUsersCompanyRoles: migrating ==========================
-- create_table(:users_company_roles, {:id=>:uuid})
   -> 0.0348s
== 20220808213541 CreateUsersCompanyRoles: migrated (0.0443s) =================

== Data =======================================================================
== 20220808213542 CreateCompanyRolesForEveryone: migrating ====================
== 20220808213542 CreateCompanyRolesForEveryone: migrated (0.0040s) ===========

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

undefined method `users_company_roles' for nil:NilClass
/app/db/data/20220808214728_assign_admin_to_company_owners.rb:35:in `block in up'
/app/db/data/20220808214728_assign_admin_to_company_owners.rb:34:in `tap'
/app/db/data/20220808214728_assign_admin_to_company_owners.rb:34: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:
NoMethodError: undefined method `users_company_roles' for nil:NilClass
/app/db/data/20220808214728_assign_admin_to_company_owners.rb:35:in `block in up'
/app/db/data/20220808214728_assign_admin_to_company_owners.rb:34:in `tap'
/app/db/data/20220808214728_assign_admin_to_company_owners.rb:34: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