Forbid null values

suggest change

To forbid null values in your table columns, add the :null parameter to your migration, like this:

class AddPriceToProducts < ActiveRecord::Migration
  def change
    add_column :products, :float, null: false
  end
end

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:


ActiveRecord migrations:
*Forbid null values

Table Of Contents
4ActiveRecord migrations
55CSV