This post originated from an RSS feed registered with Ruby Buzz
by Jamey Cribbs.
Original Post: Chapter 9
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.
This chapter introduces the has_many concept, so I’m hoping Ackbar/KirbyBase don’t let me down. :)
Page 102. I need to create an “orders” table and add a new column to the “line_items” table. So, I edit create_db.rb. Here’s the code for the new “orders” table:
db.drop_table(:orders) if db.table_exists?(:orders)
db.create_table(:orders,
:name, :String,
:email, :String,
:address, :String,
:pay_type, :String)
And here’s [...]