Errore durante l'esecuzione delle specifiche del plugin

I’m getting this on two dev instances when trying to run plugin specs on latest.

(database has been rully migrated in the test environment):

e.g bin/rake plugin:spec\[discourse-locations]

An error occurred while loading rails_helper.
Failure/Error: default_scope { where(deleted_at: nil) }

ActiveRecord::StatementInvalid:
  PG::UndefinedTable: ERROR:  relation "chat_channels" does not exist
  LINE 9:  WHERE a.attrelid = '"chat_channels"'::regclass

< SNIP >

# --- Caused by: ---
# PG::UndefinedTable:
#   ERROR:  relation "chat_channels" does not exist
#   LINE 9:  WHERE a.attrelid = '"chat_channels"'::regclass

Looking at the test database, the chat migrations appear not to have run.

> psql discourse_test 

# \d

Oh …!

I forgot to add the first environment variable to include plugins with this db migration (because chat is still a plugin):

LOAD_PLUGINS=1 RAILS_ENV=test rake db:migrate
3 Mi Piace

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.