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