Files
x-stake/spec/factories/balances.rb
2021-08-28 01:31:04 -03:00

27 lines
543 B
Ruby

# frozen_string_literal: true
# == Schema Information
#
# Table name: balances
#
# id :bigint not null, primary key
# amount :decimal(20, 10) default(0.0), not null
# created_at :datetime not null
# updated_at :datetime not null
# user_id :bigint not null
#
# Indexes
#
# index_balances_on_user_id (user_id)
#
# Foreign Keys
#
# fk_rails_... (user_id => users.id)
#
FactoryBot.define do
factory :balance do
association :user
amount { (rand * (10000 - 0) + 0) }
end
end