Displaying 1 result from an estimated 1 matches for "addtestt".
Did you mean:
addtest
2006 Sep 13
3
How to avoid AR confusing way of handling default values for attributes w/ :null => false
How can I avoid AR confusing way of handling default values for
attributes w/ :null => false?
This issue came up before, but I could not find an answer that resolves
the issue, which I outline below:
First, I add a test table using migrations:
class AddTestTable < ActiveRecord::Migration
def self.up
create_table "users", :force => true do |t|
t.column "email", :string, :null => false
t.column "age", :integer, :null => false
end
end
def self.down
drop_table "users"
end...