migrate e621 favs to own table

This commit is contained in:
Dylan Knutson
2025-08-20 22:10:57 +00:00
parent 6381067235
commit 8bd6c4b2ae
22 changed files with 1710 additions and 55 deletions

View File

@@ -719,10 +719,10 @@ class Domain::Post::E621Post
# This method is created by ActiveRecord on the `Domain::Post::E621Post` class because it declared `has_many :user_post_favs`.
# 🔗 [Rails guide for `has_many` association](https://guides.rubyonrails.org/association_basics.html#the-has-many-association)
sig { returns(::Domain::UserPostFav::PrivateCollectionProxy) }
sig { returns(::Domain::UserPostFav::E621UserPostFav::PrivateCollectionProxy) }
def user_post_favs; end
sig { params(value: T::Enumerable[::Domain::UserPostFav]).void }
sig { params(value: T::Enumerable[::Domain::UserPostFav::E621UserPostFav]).void }
def user_post_favs=(value); end
end

View File

@@ -672,12 +672,12 @@ class Domain::User::E621User
sig { params(ids: T::Array[T.untyped]).returns(T::Array[T.untyped]) }
def user_post_fav_ids=(ids); end
# This method is created by ActiveRecord on the `Domain::User` class because it declared `has_many :user_post_favs`.
# This method is created by ActiveRecord on the `Domain::User::E621User` class because it declared `has_many :user_post_favs`.
# 🔗 [Rails guide for `has_many` association](https://guides.rubyonrails.org/association_basics.html#the-has-many-association)
sig { returns(::Domain::UserPostFav::PrivateCollectionProxy) }
sig { returns(::Domain::UserPostFav::E621UserPostFav::PrivateCollectionProxy) }
def user_post_favs; end
sig { params(value: T::Enumerable[::Domain::UserPostFav]).void }
sig { params(value: T::Enumerable[::Domain::UserPostFav::E621UserPostFav]).void }
def user_post_favs=(value); end
sig { returns(T::Array[T.untyped]) }

View File

@@ -699,7 +699,7 @@ class Domain::User::InkbunnyUser
sig { params(ids: T::Array[T.untyped]).returns(T::Array[T.untyped]) }
def user_post_fav_ids=(ids); end
# This method is created by ActiveRecord on the `Domain::User` class because it declared `has_many :user_post_favs`.
# This method is created by ActiveRecord on the `Domain::User::InkbunnyUser` class because it declared `has_many :user_post_favs`.
# 🔗 [Rails guide for `has_many` association](https://guides.rubyonrails.org/association_basics.html#the-has-many-association)
sig { returns(::Domain::UserPostFav::PrivateCollectionProxy) }
def user_post_favs; end

File diff suppressed because it is too large Load Diff

View File

@@ -665,12 +665,6 @@ class Domain::UserPostFav::FaUserPostFav
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
def with_explicit_time_and_id(*args, &blk); end
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
def with_fa_fav_id(*args, &blk); end
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
def with_inferred_time_and_id(*args, &blk); end
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
def with_recursive(*args, &blk); end
@@ -1288,12 +1282,6 @@ class Domain::UserPostFav::FaUserPostFav
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
def with_explicit_time_and_id(*args, &blk); end
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
def with_fa_fav_id(*args, &blk); end
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
def with_inferred_time_and_id(*args, &blk); end
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
def with_recursive(*args, &blk); end