diff --git a/app/models/stat.rb b/app/models/stat.rb new file mode 100644 index 00000000..cf717b05 --- /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 00000000..e1aff8f6 --- /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