This post originated from an RSS feed registered with Ruby Buzz
by Jamey Cribbs.
Original Post: Chapter 10
Feed Title: Is your house on fire, Clark?
Feed URL: http://www.google.com/signup/?new=erik
Feed Description: This is a blog about my experiences using KirbyBase, a pure-Ruby DBMS, and Ackbar, an ActiveRecord adapter for KirbyBase.
Looks like I’m tackling shipping in this chapter.
Page 116. I need to add a “shipped_at” column to the orders table. So I open up create_db.rb and modify the create orders table code:
db.create_table(:orders,
:name, :String,
:email, :String,
:address, :String,
:pay_type, :String,
:shipped_at, :Time)
Notice that the MySQL datatype datetime maps to the KirbyBase datatype :Time. I [...]