Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup extension #13

Merged
merged 6 commits into from
Oct 9, 2018
Merged

Cleanup extension #13

merged 6 commits into from
Oct 9, 2018

Conversation

kennyadsl
Copy link
Member

Basically install rubocop and run in with rake before rspec.

DEPRECATION WARNING: Leaving `ActiveRecord::ConnectionAdapters::SQLite3Adapter.represent_boolean_as_integer`
set to false is deprecated. SQLite databases have used 't' and 'f' to serialize
boolean values and must have old data converted to 1 and 0 (its native boolean
serialization) before setting this flag to true. Conversion can be accomplished
by setting up a rake task which runs

  ExampleModel.where("boolean_column = 't'").update_all(boolean_column: 1)
  ExampleModel.where("boolean_column = 'f'").update_all(boolean_column: 0)

for all models and all boolean columns, after which the flag must be set to
true by adding the following to your application.rb file:

  Rails.application.config.active_record.sqlite3.represent_boolean_as_integer = true
this will allow to run rake to have both rubocop and rspec running
@kennyadsl kennyadsl merged commit 0dd3054 into solidusio:master Oct 9, 2018
@kennyadsl kennyadsl deleted the cleanup branch October 9, 2018 13:49
Copy link
Member

@tvdeyen tvdeyen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👎

I never liked that Travis CI builds failed because Rubocop failed. In the GitHub UI one thinks it failed because of specs failing.

We either should run rubocop in an extra build step (that also reports to the GitHub status API) or use a dedicated service to run linting tools. HoundCI for instance. I would prefer the later

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants