Ruby on Rails
Wednesday, February 27, 2013
Hi Guys,
I have a standalone ruby testing framework without rails testing some webservices. The project uses ActiveRecord to connect to mysql remote database through mysql adapter and uses very basic Activerecord features only like "establish_connection" and inserting values in a table. The model doesn't have the usual "up" and "down" methods as the tables are already present in the database and are outside our control.
I want to delete the data inserted as part of my tests only after my test is finished. I have been googling around this and I believe it is possible by ActiveRecord transactions. Is it possible to do this without migrations? or if with migrations, what sort of migrations would I need?
Thanks,
Rahul
-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/1XVGDwBZ0FoJ.
For more options, visit https://groups.google.com/groups/opt_out.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment