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')
- Code is at: https://github.com/atlrug/atlrug4/tree/rails5
- Last TravisCI build: https://travis-ci.org/atlrug/atlrug4/builds/117959091
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
- Ask Travis to use a newer version of SQLite Fixes ActiveRecord::StatementInvalid: SQLite3::SQLException: near ",": syntax error: INSERT INTO "schema_migrations" see: https://github.com/rails/rails/iss... — committed to audionerd/react-webpack-rails-tutorial by audionerd 8 years ago
- Ask Travis to use a newer version of SQLite Fixes ActiveRecord::StatementInvalid: SQLite3::SQLException: near ",": syntax error: INSERT INTO "schema_migrations" see: https://github.com/rails/rails/iss... — committed to ryanbelke/rails-react-yourtime by audionerd 8 years ago
- Ask Travis to use a newer version of SQLite Fixes ActiveRecord::StatementInvalid: SQLite3::SQLException: near ",": syntax error: INSERT INTO "schema_migrations" see: https://github.com/rails/rails/iss... — committed to joseph0919/React_Webpack_Rails_Tutorial by audionerd 8 years ago
@alagos this has been fixed with new release https://github.com/rails/rails/pull/24685