mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-15 16:11:41 +00:00
feat: agregar las columnas para la recolección de datos #13029
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
aaa4608cf7
commit
556a0541a5
1 changed files with 10 additions and 0 deletions
|
@ -0,0 +1,10 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
# Agrega las columnas de calculo de emisiones de CO2
|
||||||
|
class AddSustainabilityToAccessLogs < ActiveRecord::Migration[6.1]
|
||||||
|
def change
|
||||||
|
%i[datacenter_co2 network_co2 consumer_device_co2 production_co2 total_co2].each do |column|
|
||||||
|
add_column :access_logs, column, :decimal, limit: 53
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in a new issue