spec: migrates from integer to bigint
parent
e75985da6c
commit
847921f99e
|
@ -5,8 +5,8 @@ class CreateRatingTable < ActiveRecord::Migration[7.0]
|
||||||
create_table :rating_ratings do |t|
|
create_table :rating_ratings do |t|
|
||||||
t.decimal :average, default: 0, mull: false, precision: 25, scale: 16
|
t.decimal :average, default: 0, mull: false, precision: 25, scale: 16
|
||||||
t.decimal :estimate, 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.bigint :sum, default: 0, mull: false
|
||||||
t.integer :total, default: 0, mull: false
|
t.bigint :total, default: 0, mull: false
|
||||||
|
|
||||||
t.references :resource, index: true, null: false, polymorphic: true
|
t.references :resource, index: true, null: false, polymorphic: true
|
||||||
t.references :scopeable, index: true, null: true, polymorphic: true
|
t.references :scopeable, index: true, null: true, polymorphic: true
|
||||||
|
|
|
@ -5,8 +5,8 @@ class CreateReviewRatingsTable < ActiveRecord::Migration[7.0]
|
||||||
create_table :review_ratings do |t|
|
create_table :review_ratings do |t|
|
||||||
t.decimal :average, default: 0, mull: false, precision: 25, scale: 16
|
t.decimal :average, default: 0, mull: false, precision: 25, scale: 16
|
||||||
t.decimal :estimate, 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.bigint :sum, default: 0, mull: false
|
||||||
t.integer :total, default: 0, mull: false
|
t.bigint :total, default: 0, mull: false
|
||||||
|
|
||||||
t.references :resource, index: true, null: false, polymorphic: true
|
t.references :resource, index: true, null: false, polymorphic: true
|
||||||
t.references :scopeable, index: true, null: true, polymorphic: true
|
t.references :scopeable, index: true, null: true, polymorphic: true
|
||||||
|
|
Loading…
Reference in New Issue