fatfreecrm / fat_free_crm

Ruby on Rails CRM platform
http://www.fatfreecrm.com
Other
3.56k stars 1.32k forks source link

Missing action_text_rich_texts table #1262

Open chalmagean opened 5 months ago

chalmagean commented 5 months ago

Migrations fail due to missing action_text_rich_texts table.

== 20230526211831 CreateActiveStorageTables: migrated (0.0327s) ===============

== 20230526212613 ConvertToActiveStorage: migrating ===========================
-- transaction(nil)
rails aborted!
StandardError: An error has occurred, this and all later migrations canceled: (StandardError)

PG::UndefinedTable: ERROR:  relation "action_text_rich_texts" does not exist
LINE 9:  WHERE a.attrelid = '"action_text_rich_texts"'::regclass
                            ^
~/Work/fat_free_crm/db/migrate/20230526212613_convert_to_active_storage.rb:51:in `block (2 levels) in up'
~/Work/fat_free_crm/db/migrate/20230526212613_convert_to_active_storage.rb:50:in `each'
~/Work/fat_free_crm/db/migrate/20230526212613_convert_to_active_storage.rb:50:in `block in up'
~/Work/fat_free_crm/db/migrate/20230526212613_convert_to_active_storage.rb:49:in `up'

Caused by:
ActiveRecord::StatementInvalid: PG::UndefinedTable: ERROR:  relation "action_text_rich_texts" does not exist (ActiveRecord::StatementInvalid)
LINE 9:  WHERE a.attrelid = '"action_text_rich_texts"'::regclass
                            ^
~/Work/fat_free_crm/db/migrate/20230526212613_convert_to_active_storage.rb:51:in `block (2 levels) in up'
~/Work/fat_free_crm/db/migrate/20230526212613_convert_to_active_storage.rb:50:in `each'
~/Work/fat_free_crm/db/migrate/20230526212613_convert_to_active_storage.rb:50:in `block in up'
~/Work/fat_free_crm/db/migrate/20230526212613_convert_to_active_storage.rb:49:in `up'

Caused by:
PG::UndefinedTable: ERROR:  relation "action_text_rich_texts" does not exist (PG::UndefinedTable)
LINE 9:  WHERE a.attrelid = '"action_text_rich_texts"'::regclass
                            ^
~/Work/fat_free_crm/db/migrate/20230526212613_convert_to_active_storage.rb:51:in `block (2 levels) in up'
~/Work/fat_free_crm/db/migrate/20230526212613_convert_to_active_storage.rb:50:in `each'
~/Work/fat_free_crm/db/migrate/20230526212613_convert_to_active_storage.rb:50:in `block in up'
~/Work/fat_free_crm/db/migrate/20230526212613_convert_to_active_storage.rb:49:in `up'
Tasks: TOP => db:migrate
(See full trace by running task with --trace)
CloCkWeRX commented 5 months ago

https://stackoverflow.com/questions/56708362/pgundefinedtable-error-relation-action-text-rich-texts-does-not-exist-ra

gacurl commented 3 months ago

the fix referenced above didn't clear the issue at my end. Currently TS and will update note.