The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
What's New in Edge Rails: Bringin' Sexy Back

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
rwdaigle

Posts: 312
Nickname: rwdaigle
Registered: Feb, 2003

Ryan is a passionate ruby developer with a strong Java background.
What's New in Edge Rails: Bringin' Sexy Back Posted: May 6, 2007 3:15 PM
Reply to this message Reply

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.
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by rwdaigle
Latest Posts From Ryan's Scraps

Advertisement

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.

You can now do:

1
2
3
4
5
create_table "users", :force => true do |t| 
  t.integer :group_id, :employer_id
  t.string :first, :last
  t.timestamps
end

To get integer columns in group_id and employer_id and string columns in first and last. timestamps gets you the magic columns created_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.

tags: ruby, rubyonrails

Read: What's New in Edge Rails: Bringin' Sexy Back

Topic: MinneDemo Flex Presentation Previous Topic   Next Topic Topic: Rubyforge ViewVC Stats

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use