Answers for "connection on migrations ruby"

3

rails rollback multiple migrations

rake db:rollback STEP=n 
# n = how many migrations you want to rollback
Posted by: Guest on May-11-2020
1

using SQL in rails migration

def change
  execute <<-SQL
    UPDATE table1
    SET column1 = "value"
  SQL
end
Posted by: Guest on January-14-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language