Skip to content
This repository has been archived by the owner on Apr 13, 2021. It is now read-only.

Commit

Permalink
update migration
Browse files Browse the repository at this point in the history
  • Loading branch information
annikoff committed Feb 20, 2017
1 parent 14abe71 commit a577e3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/migrate/20170205204732_convert_custom_fields.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def up
end
formula = field.format_store[:formula]
sql = "UPDATE #{CustomField.table_name} SET "
sql << "is_computed = '1', field_format = '#{format}', formula = '#{formula}' WHERE id = #{field.id}"
sql << "is_computed = '1', field_format = '#{format}', formula = '#{formula}' WHERE id = #{field.id}"
ActiveRecord::Base.connection.execute(sql)
end
end
Expand Down

0 comments on commit a577e3c

Please sign in to comment.