Project

General

Profile

Bug #14866

Running foreman-rake db:convert:prod2dev fails "ArgumentError: wrong number of arguments (1 for 0)"

Added by Vincent Lequertier almost 4 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Rake tasks
Target version:
Difficulty:
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

Following "http://theforeman.org/manuals/1.11/index.html#switching-from-sqlite-to-mysqlpostgresql-while-maintaining-existing-data crash" with the error message "ArgumentError: wrong number of arguments (1 for 0)"

Please look at the file attached for the full trace.

prod2dev.log prod2dev.log 2.23 KB Vincent Lequertier, 04/28/2016 05:44 AM

Associated revisions

Revision 15f0884e (diff)
Added by Dominic Cleal almost 4 years ago

fixes #14866 - prod2dev Rails 4 compatibility

- change .first call which checked presence of id field, but would be
automatically sorted by the primary key ('id'), causing errors on
join tables without the column
- update use of offset/limit in model finders
- only set created_at/updated_at attributes when they exist

Revision a9ea0844 (diff)
Added by Dominic Cleal almost 4 years ago

fixes #14866 - prod2dev Rails 4 compatibility

- change .first call which checked presence of id field, but would be
automatically sorted by the primary key ('id'), causing errors on
join tables without the column
- update use of offset/limit in model finders
- only set created_at/updated_at attributes when they exist

(cherry picked from commit 15f0884ee0a19db67c6fe6f9e58052ac6c7ed162)

History

#1 Updated by Dominic Cleal almost 4 years ago

  • Legacy Backlogs Release (now unused) set to 155

#2 Updated by Dominic Cleal almost 4 years ago

  • Status changed from New to Assigned
  • Assignee set to Dominic Cleal

#3 Updated by The Foreman Bot almost 4 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/3477 added

#4 Updated by Dominic Cleal almost 4 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF