This post originated from an RSS feed registered with Ruby Buzz
by rwdaigle.
Original Post: What's New in Edge Rails: Bringin' Sexy Back
Feed Title: Ryan's Scraps
Feed URL: http://feeds.feedburner.com/RyansScraps
Feed Description: Ryan Daigle's various technically inclined rants along w/ the "What's new in Edge Rails" series.
You know those sexy migrations you’ve been lusting over? Yeah, well they’re mainstream now. I won’t unnecessarily duplicate here what’s already been written about them – but the gist is that a sexy migrations inspired syntax is now part of Rails.
To get integer columns in group_id and employer_id and string columns in first and last. timestamps gets you the magic columnscreated_at and updated_at.
The list of supported column types are:
string
text
integer
float
decimal
datetime
timestamp
time
date
binary
boolean
So spin that Barry White record and lay it down right, sexy’s back.