dev_forum
cxt 5 years ago
parent 1e59e577bc
commit 06661522d4

@ -1,7 +1,7 @@
class AddDescriptionToEduSettings < ActiveRecord::Migration[5.2]
def change
# add_column :edu_settings, :description, :string
# add_index :edu_settings, :name, unique: :true
add_column :edu_settings, :description, :string
add_index :edu_settings, :name, unique: :true
['tomcat_webssh', 'webssh_username', 'webssh_password', 'git_address_ip', 'git_address_domain', 'git_username',
'git_password', 'public_key', 'private_key', 'public_bucket', 'public_bucket_host', 'public_cdn_host', 'cloud_bridge',

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

@ -1,7 +1,7 @@
class AddSecKeyToOutputs < ActiveRecord::Migration[5.2]
def change
#add_column :outputs, :sec_key, :string
add_column :outputs, :ts_mem, :float
add_column :outputs, :ts_time, :float
# add_column :outputs, :ts_mem, :float
# add_column :outputs, :ts_time, :float
end
end

Loading…
Cancel
Save