i'm new to Ruby. I'm at RoR Getting Started Section 5.5 and after running db:migrate, got the below error. Any advise on why? I can't find any answers or solution or problem. Pls help.
$ bin/rake db:migrate
== 20150207172154 CreateArticles: migrating =================================== -- create_table(:articles) -> 0.0017s == 20150207172154 CreateArticles: migrated (0.0019s) ==========================
rake aborted! StandardError: An error has occurred, this and all later migrations canceled:
wrong number of arguments (1 for 0)-e:1:in
<main>' ArgumentError: wrong number of arguments (1 for 0) -e:1:in
' Tasks: TOP => db:migrate (See full trace by running task with --trace)
Below is my migration file.
class CreateArticles < ActiveRecord::Migration def change
create_table :articles do |t|
t.string :title
t.text :text
t.timestamps null: false
end
end
end