Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

rails generate migration array default value

add_column :products, :tags, :string, array: true, default: []
 
PREVIOUS NEXT
Tagged: #rails #generate #migration #array #default
ADD COMMENT
Topic
Name
8+1 =