Yes, but why are 'sexy' migrations not supported???
On Sep 22, 1:32 am, Mark Watson <[EMAIL PROTECTED]> wrote:
> Change the incorrectly generated migration file to:
>
> class ArticleMigration < ActiveRecord::Migration
> def self.up
> create_table :articles do |t|
> t.column :body, :string
> t.column :title, :string
> t.timestamps
> end
> end
>
> def self.down
> drop_table :articles
> end
> end
>
> I think that the rest of the tutorial will work for you after this
> edit.
>
> -Mark
>
> On Sep 18, 11:39 am, LinPan <[EMAIL PROTECTED]> wrote:
>
> > I'm walking through the Slapp Merb tutorial, and I've encountered a
> > problem using ActiveRecord migrations.
>
> > One of the first steps is to create a Post model:
>
> > $ merb-gen model Post body:string created_at:datetime
>
> > However, when I try to run this migration, I get the following error:
>
> > rake aborted!
> > undefined method `body' for
> > #<ActiveRecord::ConnectionAdapters::TableDefinition:0x221d444>
>
> > I'm using Merb and MerbActiveRecord 0.9.7. I've tried this with
> > ActiveRecord 2.1.0 and 2.0.2, and both throw the same error. Has
> > anyone else encountered this?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"merb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/merb?hl=en
-~----------~----~----~----~------~----~------~--~---