Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

using SQL in rails migration

def change
  execute <<-SQL
    UPDATE table1
    SET column1 = "value"
  SQL
end
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #SQL #rails #migration
ADD COMMENT
Topic
Name
8+6 =