dev_forum
cxt 5 years ago
parent 8dbc4c65ce
commit 70447eaa26

@ -1,6 +1,6 @@
class AddExecTimeToChallenge < ActiveRecord::Migration[5.2] class AddExecTimeToChallenge < ActiveRecord::Migration[5.2]
def change def change
add_column :challenges, :exec_time, :integer # add_column :challenges, :exec_time, :integer
Shixun.find_each do |shixun| Shixun.find_each do |shixun|
shixun.challenges.update_all(exec_time: shixun.exec_time) shixun.challenges.update_all(exec_time: shixun.exec_time)

Loading…
Cancel
Save