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

scripterator should have a configuration to automatically handle record_timestamp disabling #8

Open
dollschasingmen opened this issue Jul 29, 2015 · 0 comments

Comments

@dollschasingmen
Copy link

currently we often have to write something like this:

before do
  ActiveRecord::Base.record_timestamps = false
end

for_each_query_version do |qv|
  qv.parameters = convert(qv.parameters)
  qv.save!
end

after do
  ActiveRecord::Base.record_timestamps = true
end

because we don't want to modify updated_at as a result of the script. There should be a configuration to do this.

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

No branches or pull requests

1 participant