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

Commit a577e3c

Browse files
committed
update migration
1 parent 14abe71 commit a577e3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

db/migrate/20170205204732_convert_custom_fields.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def up
1212
end
1313
formula = field.format_store[:formula]
1414
sql = "UPDATE #{CustomField.table_name} SET "
15-
sql << "is_computed = '1', field_format = '#{format}', formula = '#{formula}' WHERE id = #{field.id}"
15+
sql << "is_computed = '1', field_format = '#{format}', formula = '#{formula}' WHERE id = #{field.id}"
1616
ActiveRecord::Base.connection.execute(sql)
1717
end
1818
end

0 commit comments

Comments
 (0)