2026-05-30 16:15:24 +00:00
|
|
|
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
|
|
|
|
|
2026-05-30 20:51:16 +00:00
|
|
|
# == Schema Information
|
|
|
|
|
#
|
|
|
|
|
# Table name: votes
|
|
|
|
|
#
|
|
|
|
|
# id :bigint not null, primary key
|
|
|
|
|
# direction :integer
|
|
|
|
|
# votable_type :string not null
|
|
|
|
|
# created_at :datetime not null
|
|
|
|
|
# updated_at :datetime not null
|
|
|
|
|
# user_id :bigint not null
|
|
|
|
|
# votable_id :bigint not null
|
|
|
|
|
#
|
|
|
|
|
# Indexes
|
|
|
|
|
#
|
|
|
|
|
# index_votes_on_user_id (user_id)
|
|
|
|
|
# index_votes_on_votable (votable_type,votable_id)
|
|
|
|
|
#
|
|
|
|
|
# Foreign Keys
|
|
|
|
|
#
|
|
|
|
|
# fk_rails_... (user_id => users.id)
|
|
|
|
|
#
|
2026-05-30 16:15:24 +00:00
|
|
|
one:
|
|
|
|
|
user: one
|
|
|
|
|
votable=references{polymorphic}: MyString
|
|
|
|
|
direction: 1
|
|
|
|
|
|
|
|
|
|
two:
|
|
|
|
|
user: two
|
|
|
|
|
votable=references{polymorphic}: MyString
|
|
|
|
|
direction: 1
|