RoR またまたエラー

データベースにテーブル追加するとき、一部がsyntax errorになる

これは、理由分からず。とりあえずメモを残し、MySQLコマンドで普通に作る。

で、マイレーションのためのコード。

class CreateBmdsV5s < ActiveRecord::Migration
def self.up
create_table :bmds_v5s do |t|
t.string :name,      ←後に追記:カンマがダメなのでした!
t.integer :wmoid,     
t.string :idvid,     
t.string :unqid, :null => false

t.timestamps
end
end

def self.down
drop_table :bmds_v5s
end
end

テーブル作成をしようとすると、下記のエラーとなる。一行飛ばし?なんで?フィールドの設定順を変更して試してみても、やはり一行飛ばしにエラーがでる。行内の記述ミスではなさそう。

> rake db:migrate
(in /RoR_test/BMDS)
rake aborted!
./db/migrate//20090311135143_create_bmds_v5s.rb:5: syntax error, unexpected tSYMBEG, expecting kEND
t.integer :wmoid,
^
./db/migrate//20090311135143_create_bmds_v5s.rb:7: syntax error, unexpected tSYMBEG, expecting kEND
t.string :unqid, :null => false
^
(See full trace by running task with --trace)

うーん、本当になぜダメなんだろう。。。 ←上述のように、私のカンマ記載ミスでした!ということで解決!