Skip to content

Instantly share code, notes, and snippets.

@mccun934
Created March 28, 2019 17:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mccun934/b25876d81d8940be1f758370b84b4e30 to your computer and use it in GitHub Desktop.
Save mccun934/b25876d81d8940be1f758370b84b4e30 to your computer and use it in GitHub Desktop.
Sequel::Migrator::Error: More than 1 row in migrator table
# foreman-rake db:migrate --trace
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
TABLE dynflow_schema_info
rake aborted!
Sequel::Migrator::Error: More than 1 row in migrator table
/opt/theforeman/tfm/root/usr/share/gems/gems/sequel-4.20.0/lib/sequel/extensions/migration.rb:590:in `schema_dataset'
/opt/theforeman/tfm/root/usr/share/gems/gems/sequel-4.20.0/lib/sequel/extensions/migration.rb:444:in `initialize'
foreman=# select * from dynflow_schema_info;
version
---------
10
10
(2 rows)
^
foreman=# delete from dynflow_schema_info;
DELETE 2
^
foreman=# insert into dynflow_schema_info (version) values ('10');
INSERT 0 1
foreman=# select * from dynflow_schema_info;
version
---------
10
(1 row)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment