Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

rails migration add default value

change_column :users, :admin, :boolean, :default => false
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #rails #migration #add #default
ADD COMMENT
Topic
Name
7+9 =