What is the difference between default and null in migration

Viewed 14859

What is the difference between:

t.boolean :test, :default => true

and

t.boolean :test, :null => true

and

t.boolean :test, :default => true, :null => true

EDIT

Does the following make any sense?

t.boolean :test, :default => true, :null => false
3 Answers
Related