using SQL in rails migration code example
Example: using SQL in rails migration
def change
execute <<-SQL
UPDATE table1
SET column1 = "value"
SQL
end
def change
execute <<-SQL
UPDATE table1
SET column1 = "value"
SQL
end