Files
x-stake/db/seeds.rb
2021-08-13 11:38:38 -03:00

21 lines
403 B
Ruby

# frozen_string_literal: true
AdminUser.create!(email: "admin@example.com", password: "password")
user = User.create!(
first_name: "Test",
last_name: "User",
email: "user@example.com",
password: "password"
)
currency = Currency.create!(name: "CAKE")
Balance.create!(
user_id: user.id,
currency_id: currency.id,
amount: (rand * (10000 - 0) + 0)
)
FiatBalance.create!(user_id: user.id)