Build Test Environment DB from Migrations

Category: Other - Tools & Utilities

This custom rake task builds the test environment database from the migrations rather than the schema dump of the development database. This is especially handy if you have application data inserted via your migrations that you don't want to duplicate in fixtures.You should be able to stick this in a file called ".rake" and put it in your "tasks" directory.To use as a plugin, create a directory in "vendor/plugins" and call it whatever you want. Inside, create a directory called "tasks". Place this code in a file there and call it whatever you want. Date: 03 February, 2012


Test Environment - DB Migrations - Ruby Snippets - Test - Environment

Homepage: http://snippets.dzone.com

Developer: snippets.dzone.com

License: Freeware

Operating System: Windows, Linux

Add a Comment

all are required fields

     
What do you think of this resource?

Select Your Rate:

Votes:0

 

Related Scripts Download

It will test the server by using all available connections, so the web server cannot complete all other requests.

developer Developer: SourceForge.net
license License: Artistic License, GNU General Public License (GPL)
operating systems Operating System: Windows, Linux, Mac OS, BSD, Solaris


Split an array of elements into a set of smaller arrays of equal size.

developer Developer: snippets.dzone.com
license License: Freeware
operating systems Operating System: All


Split a string into an array of roughly equal sized chunks based on a string or regular expression delimiter.

developer Developer: snippets.dzone.com
license License: Freeware
operating systems Operating System: All


Get the currently running method name in Ruby - how to get the running methos name in ruby.

developer Developer: snippets.dzone.com
license License: Freeware
operating systems Operating System: All


Float Hacks:to_s override.

developer Developer: snippets.dzone.com
license License: Freeware
operating systems Operating System: All


A replacement for Ruby's File.

developer Developer: snippets.dzone.com
license License: Freeware
operating systems Operating System: All


The following code will create a live search in your Ruby on Rails project using AJAX.

developer Developer: snippets.dzone.com
license License: Freeware
operating systems Operating System: All


Street Designation hash is a hash for converting street designation abbreviations.

developer Developer: snippets.dzone.com
license License: Freeware
operating systems Operating System: Windows, Linux


Some code to help in completely redefining a Rake task.

developer Developer: snippets.dzone.com
license License: Freeware
operating systems Operating System: Windows, Linux