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.