迁移重复问题

dev_forum
jingquan huang 6 years ago
parent 155152acb1
commit 6c0bb47639

@ -1,6 +1,6 @@
class MigrateCourseMembers < ActiveRecord::Migration[5.2]
def change
add_column :course_groups, :position, :integer, default: 0
# add_column :course_groups, :position, :integer, default: 0
Course.find_each do |course|
position = 1

Loading…
Cancel
Save