On Oct 24, 2008, at 9:40 AM, Thierry Delbart wrote:

>
> Juste before trying to migrate thie table clubs, I did it fine with
> league:
>
> class CreateLeagues < ActiveRecord::Migration
>  def self.up
>    create_table :leagues do |t|
>      t.columns :name, :string
>      t.columns :ref, :string
>      t.columns :description, :string
>      t.columns :category, :string

Shouldn't that be "t.column"? (no 's').  Or maybe even...

t.string :name
....



>      t.timestamps
>    end
>  end
>
>  def self.down
>    drop_table :leagues
>  end
> end
> --  
> Posted via http://www.ruby-forum.com/.
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to