这是我的迁移
create_table :customers do |t|
t.string "name", :limit => 25 , :null => false
t.string "email", :limit => 25, :null => false
t.string "question", :limit => 255 , :null => true
t.integer "status", :limit => 1, :default => 0, :null => false
t.timestamps
end
现在,在模型中,我想使用以下代码插入一个值:
Customers.new(:name => name, :email => email, :question => question, :status => 1)
但是值没有插入到表中,为什么?