S3 and Paperclip with Heroku for a Rails app - migrations not running on production -


i set app upload pictures directly s3 user class. locally, working fine. added attribute user class called avatar. in rails console, when call user.last.avatar.url s3 url picture uploaded.

when pushed changes heroku, though, tried running migrations nothing happened, , obviously, in heroku console, method error when run user.last.avatar.url

not sure or happened. have 1 bucket don't think that's why migrations aren't running.

edit : here's migration

    class addavatartousers < activerecord::migration   def self.up     add_attachment :users, :avatar   end    def self.down     remove_attachment :users, :avatar   end  end 


Comments

Popular posts from this blog

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -