spec: timestamps is already non null
parent
847921f99e
commit
c7198b1899
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue