This article is tagged with:
Using sql in rails migration
and mysql
using SQL in rails migration
def change
execute <<-SQL
UPDATE table1
SET column1 = "value"
SQL
end