I'm new with RoR.
I have a simple migration file:
class CreateClubs < ActiveRecord::Migration
def self.up
create_table :clubs do |t|
t.columns :name, :string
t.columns :ref, :string
t.columns :description, :string
t.columns :local, :string
t.timestamps
end
end
def self.down
drop_table :clubs
end
end
But I get this error message:
[..]
Wrong number of arguments (2 of 0)
./db/[..].rb:4:in 'columns'
[..]
What am I missing?
Thank you for your help.
--
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
-~----------~----~----~----~------~----~------~--~---