Here is my migration
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
Now, in the model, I want insert a value using this code:
Customers.new(:name => name, :email => email, :question => question, :status => 1)
But value does not inserted in table, why?