5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-06-16 20:02:22 +00:00

Merge branch 'issue-13029' into 'rails'
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

feat: agregar las columnas para la recolección de datos c

See merge request sutty/sutty!153
This commit is contained in:
fauno 2023-05-13 14:51:06 +00:00
commit 2e0d981c2e

View file

@ -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