rake start_fresh

Category: Other - Tools & Utilities

Sometimes you don't want to fool with migrating up or down a version of your development server and you just want to start fresh. This task will - clear the logs - recreate the test and development databases - migrate to the most recent schema - load all your test fixtures into your development database - clone your development structure to the test database To use it call "rake start_fresh"There is also a short "rake start" command, which I tossed in as a little something something, you can use it instead of typing "ruby script/server" Date: 06 March, 2012


Start Fresh - Rake Fresh - Ruby Snippets - Rake - Start - Fresh

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

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


Clone dev DB schema to test DB in Rails.

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


Instead of using $KCODE = 'UTF8' together with require 'jcode' you can use the /u regex parameter to parse UTF-8 strings containing multibyte characters.

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


Modify how form helpers such as 'text_field' handle errors in the following way: - errors are shown after the input fields (not on top of the form) - each error can have an explanation on top of the form (only when using custom validator methods) A custom error SPAN with a nice arrow *after* the input tag, and handle multiple errors for one field (in environment.

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