#RubyOnRails - 13 January 2019
« Back 1 day Forward 1 day »
[02:57:23] sarink: how can i write a migration to rollback a previous (committed and ran) migration? is there a way to do this, or am i better off just copying/pasting it and reversing it
[05:42:57] sarink: got disconnected, did anyone happen to answer above^? (also, are there logs of this channel anywhere?"
[05:53:28] havenwood: sarink: It's nice to make sure your migrations' down works so you can: rails db:rollback
[05:54:14] sarink: i need to write a migration that rolls back a previously committed/executed migration.
[05:56:55] sarink: it is reversible, i'm trying to figure out if there's a way to say "reverse migration 1234" rather than copying/pasting the code and writing the reversal myself
[06:06:59] havenwood: sarink: https://guides.rubyonrails.org/active_record_migrations.html#reverting-previous-migrations
[06:08:58] havenwood: sarink: Best to use ^, but just for general reference, you can: ENV['VERSION'] = '1234'; Rake::Task['db:migrate:down'].invoke
[11:26:38] fugee: i'm getting 404 not found for all my sites running passenger-nginx-module https://gist.github.com/mices/ed1ee0d21eccaf2e629ad3434c58ea22
[15:13:49] PCiobanita: hi there. I am new here but I need some help with ruby sinatra. Been stuck here for the past few days. I need to solve this in the next few hours. It shoulnt take to long if somone can and is willing to help let me know.
[15:29:53] PCiobanita: hi there. I am new here but I need some help with ruby sinatra. Been stuck here for the past few days. I need to solve this in the next few hours. It shoulnt take to long if somone can and is willing to help let me know. also new to the platform.
[16:17:56] PCiobanita: i need to post from textarea into database.. i can post harcoded messege but cannot from params. i cant figure out. if somone can give me 5 min overdiscord to hsare my code would be great