change sql table column on heroku
ActiveRecord::Base.connection.execute(ALTER TABLE thetable ALTER COLUMN colname TYPE integer USING (trim(col_name)::integer);)
// that's written on heroku's console
Written by Yasser Arafa
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Rails
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#