spec: timestamps is already non null

main
Washington Botelho 2022-05-17 23:50:53 -03:00
parent 847921f99e
commit c7198b1899
4 changed files with 4 additions and 4 deletions

View File

@ -9,7 +9,7 @@ class CreateRateTable < ActiveRecord::Migration[7.0]
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
t.timestamps null: false t.timestamps
end end
change_column :rating_rates, :author_type, :string, limit: 10 change_column :rating_rates, :author_type, :string, limit: 10

View File

@ -11,7 +11,7 @@ class CreateRatingTable < ActiveRecord::Migration[7.0]
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
t.timestamps null: false t.timestamps
end end
change_column :rating_ratings, :resource_type, :string, limit: 10 change_column :rating_ratings, :resource_type, :string, limit: 10

View File

@ -11,7 +11,7 @@ class CreateReviewRatingsTable < ActiveRecord::Migration[7.0]
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
t.timestamps null: false t.timestamps
end end
end end
end end

View File

@ -9,7 +9,7 @@ class CreateReviewsTable < ActiveRecord::Migration[7.0]
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
t.timestamps null: false t.timestamps
end end
end end
end end