From: Gregory Brown Date: 2007-08-01T11:50:43+09:00 Subject: Re: Railless ActiveRecord On 7/31/07, Ari Brown wrote: > Hey all. More ActiveRecord trouble. > > So I have my ActiveRecord connection. All is good. I am connecting to > an SQLite3 database, which is working out pretty well for me. I think. > > So my story is this: When I tried to use the table "characters", > abstracted from class Character, I get an error: > `table_structure': ActiveRecord::StatementInvalid > (ActiveRecord::StatementInvalid) > > I did some poking around and actually read the error message, and I'm > getting this error because there is no table characters (right??) > So how do I create these tables in ActiveRecord? I show how to do this on page 2 of my "How to build simple console apps with Ruby and ActiveRecord" article http://www.oreillynet.com/pub/a/ruby/2007/06/21/how-to-build-simple-console-apps-with-ruby-and-activerecord.html?page=2 See the ActiveRecord::Schema documentation for more help.