Skip to content

Instantly share code, notes, and snippets.

@dburger
Created May 24, 2009 07:07
Show Gist options
  • Save dburger/116993 to your computer and use it in GitHub Desktop.
Save dburger/116993 to your computer and use it in GitHub Desktop.
namespace :data do
desc 'Set positions per parent_id, position, short_name via stored procedure'
task :sp_set_positions => :environment do
sql = 'CALL set_positions()'
puts sql
ActiveRecord::Base.connection.execute(sql)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment