Skip to content

Instantly share code, notes, and snippets.

View vito-lbs's full-sized avatar

Vito vito-lbs

View GitHub Profile
class Token < ActiveRecord::Base
include BCrypt
belongs_to :instance
belongs_to :round
has_many :redemptions
has_many :captures, through: :redemptions
validates :instance, presence: true
validates :round, presence: true