Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

change a column type in rails

#      rails g migration sample_name_change_column_type

def change
    change_column(:table_name, :column_name, :new_type)
end
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #change #column #type #rails
ADD COMMENT
Topic
Name
1+5 =