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

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -