rails run sql iin migrations 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