From df2b66afe85d806e32aee341fdc4beb5ee5cd873 Mon Sep 17 00:00:00 2001 From: f Date: Fri, 8 Oct 2021 18:21:09 -0300 Subject: [PATCH] =?UTF-8?q?llevar=20el=20registro=20de=20las=20recoleccion?= =?UTF-8?q?es=20de=20estad=C3=ADsticas?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/stat.rb | 3 +++ db/migrate/20211008201239_create_stats.rb | 12 ++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 app/models/stat.rb create mode 100644 db/migrate/20211008201239_create_stats.rb diff --git a/app/models/stat.rb b/app/models/stat.rb new file mode 100644 index 0000000..cf717b0 --- /dev/null +++ b/app/models/stat.rb @@ -0,0 +1,3 @@ +# frozen_string_literal: true + +class Stat < ApplicationRecord; end diff --git a/db/migrate/20211008201239_create_stats.rb b/db/migrate/20211008201239_create_stats.rb new file mode 100644 index 0000000..e1aff8f --- /dev/null +++ b/db/migrate/20211008201239_create_stats.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +# Una tabla que lleva el recuento de recolección de estadísticas, solo +# es necesario para saber cuándo se hicieron, si se hicieron y usar como +# caché. +class CreateStats < ActiveRecord::Migration[6.1] + def change + create_table :stats do |t| + t.timestamps + end + end +end