Skip to content

Instantly share code, notes, and snippets.

Buffy Miller buffym

  • YouNeedABudget.com
  • https://twitter.com/buffym
Block or report user

Report or block buffym

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View convert.rake
desc "convert a latin1 database with utf8 data into proper utf8"
task :convert_to_utf8 => :environment do
puts Time.now
dryrun = ENV['DOIT'] != '1'
conn = ActiveRecord::Base.connection
if dryrun
def conn.run_sql(sql)
puts(sql)
end
else
You can’t perform that action at this time.