From 847921f99e6b72f7dcbff3b0f50f4acfbb043b24 Mon Sep 17 00:00:00 2001 From: Washington Botelho Date: Tue, 17 May 2022 23:50:42 -0300 Subject: [PATCH] spec: migrates from integer to bigint --- spec/support/db/migrate/create_rating_table.rb | 4 ++-- spec/support/db/migrate/create_review_ratings_table.rb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/support/db/migrate/create_rating_table.rb b/spec/support/db/migrate/create_rating_table.rb index d38fcc3..fed0324 100644 --- a/spec/support/db/migrate/create_rating_table.rb +++ b/spec/support/db/migrate/create_rating_table.rb @@ -5,8 +5,8 @@ class CreateRatingTable < ActiveRecord::Migration[7.0] create_table :rating_ratings do |t| t.decimal :average, default: 0, mull: false, precision: 25, scale: 16 t.decimal :estimate, default: 0, mull: false, precision: 25, scale: 16 - t.integer :sum, default: 0, mull: false - t.integer :total, default: 0, mull: false + t.bigint :sum, default: 0, mull: false + t.bigint :total, default: 0, mull: false t.references :resource, index: true, null: false, polymorphic: true t.references :scopeable, index: true, null: true, polymorphic: true diff --git a/spec/support/db/migrate/create_review_ratings_table.rb b/spec/support/db/migrate/create_review_ratings_table.rb index 575235b..125ebe8 100644 --- a/spec/support/db/migrate/create_review_ratings_table.rb +++ b/spec/support/db/migrate/create_review_ratings_table.rb @@ -5,8 +5,8 @@ class CreateReviewRatingsTable < ActiveRecord::Migration[7.0] create_table :review_ratings do |t| t.decimal :average, default: 0, mull: false, precision: 25, scale: 16 t.decimal :estimate, default: 0, mull: false, precision: 25, scale: 16 - t.integer :sum, default: 0, mull: false - t.integer :total, default: 0, mull: false + t.bigint :sum, default: 0, mull: false + t.bigint :total, default: 0, mull: false t.references :resource, index: true, null: false, polymorphic: true t.references :scopeable, index: true, null: true, polymorphic: true