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

adding migration #150

Merged
merged 2 commits into from Apr 28, 2016
Merged

adding migration #150

merged 2 commits into from Apr 28, 2016

Conversation

Stuart-Johnson
Copy link
Collaborator

No description provided.

@@ -0,0 +1,7 @@
class RemoveServiceCostFromIncompleteProcedures < ActiveRecord::Migration
def change
Procedure.where("service_cost != ? AND status != ?", false, 'complete').find_each do |procedure|
Copy link
Contributor

@wtholt wtholt Apr 28, 2016

Choose a reason for hiding this comment

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

New syntax:

where.not(service_cost: false, status: "complete")

@Stuart-Johnson Stuart-Johnson merged commit 5443826 into master Apr 28, 2016
@Stuart-Johnson Stuart-Johnson deleted the sj-procedure_pricing_migration branch April 28, 2016 15:05
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.

None yet

2 participants