Hi,
I am kind of new to Rails and I want to write some self.down queries. Currently I am hardcoding the entire query. Is there a easier way to do it ?
def self.down
delete("delete from trigger_events where name = 'CHANGE_APPROVED'")
delete("delete from notifications where trigger_event_id = 5")
delete("delete from notification_recipients where notification_id = 5")
delete("delete from n_m_d where notification_id = 5 and msg_index=15")
end
Thanks