rails: Getting ActiveRecord::StatementInvalid error on TravisCI for Rails 5 project

Steps to reproduce

  • Clone the repo and checkout “rails5” branch.
  • Set up TravisCI.
  • Change something small, such as add blank line to README.
  • Push to GitHub and watch TravisCI.

Expected behavior

Expected not to get ActiveRecord::StatementInvalid error. This behavior did not occur on the master (Rails 4.2.6) branch.

Actual behavior

I have been working on upgrading our local Ruby Users Group web site from Rails 4.2 to Rails 5 in repo’s “rails5” branch and it fails TravisCI run (works fine locally) with this error message:

ActiveRecord::StatementInvalid: SQLite3::SQLException: near
",": syntax error: INSERT INTO "schema_migrations" (version)
VALUES ('20120321020431'), ('20120321184254')

System configuration

Rails version: 5.0.0.beta3

Ruby version: 2.3.0 Thanks

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 15 (9 by maintainers)

Commits related to this issue

Most upvoted comments

@alagos this has been fixed with new release https://github.com/rails/rails/pull/24685