28 lines
626 B
Ruby
28 lines
626 B
Ruby
# == 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)
|
|
#
|
|
require "test_helper"
|
|
|
|
class VoteTest < ActiveSupport::TestCase
|
|
# test "the truth" do
|
|
# assert true
|
|
# end
|
|
end
|