注释迁移文件

dev_hjm
daiao 6 years ago
parent 0608650789
commit 0ba752503e

@ -1,7 +1,7 @@
class AddExecTimeToEvaluateRecords < ActiveRecord::Migration[5.2]
def change
remove_columns :evaluate_records, :exec_time if User.first.attributes.include?("exec_time")
add_column :evaluate_records, :exec_time, :integer
# remove_columns :evaluate_records, :exec_time if EvaluateRecord.first.attributes.include?("exec_time")
#
# add_column :evaluate_records, :exec_time, :integer
end
end

Loading…
Cancel
Save