From c7198b189900db484885c8e73653a81403ba99d8 Mon Sep 17 00:00:00 2001 From: Washington Botelho Date: Tue, 17 May 2022 23:50:53 -0300 Subject: [PATCH] spec: timestamps is already non null --- spec/support/db/migrate/create_rates_table.rb | 2 +- spec/support/db/migrate/create_rating_table.rb | 2 +- spec/support/db/migrate/create_review_ratings_table.rb | 2 +- spec/support/db/migrate/create_reviews_table.rb | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/support/db/migrate/create_rates_table.rb b/spec/support/db/migrate/create_rates_table.rb index 20a4152..e7cb9dc 100644 --- a/spec/support/db/migrate/create_rates_table.rb +++ b/spec/support/db/migrate/create_rates_table.rb @@ -9,7 +9,7 @@ class CreateRateTable < ActiveRecord::Migration[7.0] t.references :resource, index: true, null: false, polymorphic: true t.references :scopeable, index: true, null: true, polymorphic: true - t.timestamps null: false + t.timestamps end change_column :rating_rates, :author_type, :string, limit: 10 diff --git a/spec/support/db/migrate/create_rating_table.rb b/spec/support/db/migrate/create_rating_table.rb index fed0324..2294724 100644 --- a/spec/support/db/migrate/create_rating_table.rb +++ b/spec/support/db/migrate/create_rating_table.rb @@ -11,7 +11,7 @@ class CreateRatingTable < ActiveRecord::Migration[7.0] t.references :resource, index: true, null: false, polymorphic: true t.references :scopeable, index: true, null: true, polymorphic: true - t.timestamps null: false + t.timestamps end change_column :rating_ratings, :resource_type, :string, limit: 10 diff --git a/spec/support/db/migrate/create_review_ratings_table.rb b/spec/support/db/migrate/create_review_ratings_table.rb index 125ebe8..eb24b43 100644 --- a/spec/support/db/migrate/create_review_ratings_table.rb +++ b/spec/support/db/migrate/create_review_ratings_table.rb @@ -11,7 +11,7 @@ class CreateReviewRatingsTable < ActiveRecord::Migration[7.0] t.references :resource, index: true, null: false, polymorphic: true t.references :scopeable, index: true, null: true, polymorphic: true - t.timestamps null: false + t.timestamps end end end diff --git a/spec/support/db/migrate/create_reviews_table.rb b/spec/support/db/migrate/create_reviews_table.rb index b0df943..820141e 100644 --- a/spec/support/db/migrate/create_reviews_table.rb +++ b/spec/support/db/migrate/create_reviews_table.rb @@ -9,7 +9,7 @@ class CreateReviewsTable < ActiveRecord::Migration[7.0] t.references :resource, index: true, null: false, polymorphic: true t.references :scopeable, index: true, null: true, polymorphic: true - t.timestamps null: false + t.timestamps end end end