If you'd like to add an index on the new column, you can do that as well. $ bin/rails generate migration AddPartNumberToProducts part_number:string:index
確定! 回上一頁