Database schema seed/migrate has inconsistencies
A new deployment of frab ( #198 (closed) ) fails to successfully setup the frab database schema and content. The following errors have been encountered on bundle exec rake db:setup
and ...db:migrate
$ dokku run degrowth2018-dev bundle exec rake db:migrate
...
== 20110930110209 RemoveDeviseSpecificColumnsFromUsers: migrating =============
-- rename_column(:users, :encrypted_password, :password_digest)
-> 0.0027s
-- remove_column(:users, :password_salt)
rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:
PG::UndefinedColumn: ERROR: column "password_salt" of relation "users" does not exist
: ALTER TABLE "users" DROP "password_salt"/app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/postgresql/database_statements.rb:155:in `async_exec'
...
Tasks: TOP => db:migrate
(See full trace by running task with --trace)
Connection to apps.allmende.io closed.
$ dokku run degrowth2018-dev bundle exec rake db:setup
...
-- initialize_schema_migrations_table()
-> 0.0035s
rake aborted!
ActiveRecord::RecordInvalid: Validation failed: Ss review deadline can't be blank, Ip expert review deadline can't be blank, Ip peer review deadline can't be blank
...
Tasks: TOP => db:setup => db:seed
(See full trace by running task with --trace)
Connection to apps.allmende.io closed.
Edited by jon r