Tip #11 - Transact Your Migrations!
April 19th, 2008
If you are using Rails, you are most likely using migrations. Have you ever had a migration fail half way through? Have you ever then had to figure out how to find each change and revert it in the database? Would you like to never have to do that again? Here is how…
Read the rest of this entryPostgreSQL on Windows - Startup Errors
April 16th, 2008
If you are using PostgreSQL on Windows and you get: FATAL: pre-existing shared memory block is still in use Or you get: HINT: Check if there are any old server processes still running, and terminate them. errors, here is how you fix it.
Read the rest of this entryLatest comments
- Mikel
@Clemens
I actually use Geoffrey’s approach in all my spec’s in addition to this little builder.
The idea of the...
- Clemens Kofler
Geoffrey Grosenbach uses another method in his screencasts sometimes.
In your user_spec.rb, you’d have the following code:module UserSpecHelper...
- Xavier Shay
Even quicker way to assign User.find to a variable: user = _
the value of the last line executed is...
- Mikel
Duncan, good point, I changed the code above. Thanks for that.
- Duncan Beevers
It might be better to use a method name like build_valid instead of just build.
This way, you could use...
- Mikel
Exactly, this method handles it if it is false or nil and always returns true or false.
Mikel
Categories
Pages
Tag Cloud
about mikel ActiveRecord AJAX anti drug apache Apple ARGH! Australia contributing Copy Database daemon Development documentation drugs Feedburner Gem server Google Human Rights illustrator Javascript L. Ron Hubbard lambda MacOSX mephisto MS SQL Server newspapers nitro Not Programming open source OpenBSD opensource Performance Personal Integrity photoshop PostgreSQL productivity programming Prototype Puzzle Rails Rails Tips railscasts RDoc REST RESTful Rails RSpec Ruby ruby on rails Ruby on Rails Tips rubyforge Scientologist Scientology seo Site Stats sitemap Soekris Soekris net5501 SQLServer SVN Textmate tips tmail tom cruise vector graphics Windows WorldArchives
- May 2008 (0)
- April 2008 (2)