2010 July 01

Support the First Amendment with 1 for All (via WordPress.com News)

I am taking a break from my normal programming fare with this message about WordPress supporting the 1 for all movement. I think that we do take familiar things like the First Amendment for granted and that most people do not understand the US Constitution as well as they should. If you have not read the US Constitution lately, head on over to USConstitution.net and read up. It may a bit dry in parts, but it is the founding document of our nation and deserves a good read.

Support the First Amendment with 1 for All Congress shall make no law respecting an establishment of religion, or prohibiting the free exercise thereof; or abridging the freedom of speech, or of the press; or the right of the people peaceably to assemble, and to petition the Government for a redress of grievances. Born and raised on the Texas Gulf Coast, I’ve spent the past few months trying to wrap my head around the Deepwater Horizon explosion and subsequent massive oil spill that is no … Read More

via WordPress.com News

Shame and migrations

It turns out then, when trying to bootstrap a Ruby on Rails application after pulling it down from a repository, it is really important to set up a database for the application before you try to start it. Yes, like a pony and pony food, any web application needs a database to function properly. Before you start, run

rake db:create

and

rake db:migrate

The create command will create a new MySQL database on your local machine, unless you specify otherwise. The migrate command will configure the database with all the tables and relationships that are needed for it to work properly. The configuration instructions are in the applications model and migration files.

That way, everybody is happy and you don’t look like a complete noob in front of half the development team for two weeks. Not that, uh, that has ever happened to me.