Sha256: 7dcfdf1b43b6ebd989983ea4c779ae91dc252ddbd612096d1670b3f8a9ad0cbe

Contents?: true

Size: 1.69 KB

Versions: 13

Compression:

Stored size: 1.69 KB

Contents

# == Schema Information
#
# Table name: accounts
#
#  id              :integer         not null, primary key
#  user_id         :integer
#  assigned_to     :integer
#  name            :string(64)      default(""), not null
#  access          :string(8)       default("Public")
#  website         :string(64)
#  toll_free_phone :string(32)
#  phone           :string(32)
#  fax             :string(32)
#  deleted_at      :datetime
#  created_at      :datetime
#  updated_at      :datetime
#  email           :string(64)
#  background_info :string(255)
#  rating          :integer         default(0), not null
#  category        :string(32)
#

<%
  require "ffaker"
  puts "Loading accounts..."

  category = %w(affiliate competitor customer partner reseller vendor) << nil

  for i in (1 .. rand(20) + 100) do
%>
account<%= i %>:
  id               : <%= i %>
  user_id          : <%= rand(8) + 1 %>
  assigned_to      : <%= rand(8) + 1 %>
  name             : <%= company = FFaker::Company.name %>
  access           : Public
  website          : http://www.<%= company.downcase.gsub(/\W/, "") %>.com
  toll_free_phone  : 1-800-<%= "%03d-%04d" % [rand(999), rand(9999)] %>
  phone            : <%= FFaker::PhoneNumber.short_phone_number %>
  fax              : <%= FFaker::PhoneNumber.short_phone_number %>
  email            : info@<%= company.downcase.gsub(/\W/, "") %>.com
  background_info  : <%= "#{FFaker::Company.catch_phrase} #{FFaker::Company.bs}" %>
  rating           : <%= rand(5) %>
  category         : <%= category.sample %>
  created_at       : <%= created_at = (rand(60) + 2).days.ago + rand(600).minutes; created_at.to_s(:db) %>
  updated_at       : <%= (created_at + rand(36_000).seconds).to_s(:db) %>
<% end %>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
fat_free_crm-0.22.1 db/demo/accounts.yml
fat_free_crm-0.22.0 db/demo/accounts.yml
fat_free_crm-0.21.0 db/demo/accounts.yml
fat_free_crm-0.20.1 db/demo/accounts.yml
fat_free_crm-0.20.0 db/demo/accounts.yml
fat_free_crm-0.19.2 db/demo/accounts.yml
fat_free_crm-0.19.0 db/demo/accounts.yml
fat_free_crm-0.18.2 db/demo/accounts.yml
fat_free_crm-0.17.3 db/demo/accounts.yml
fat_free_crm-0.18.1 db/demo/accounts.yml
fat_free_crm-0.18.0 db/demo/accounts.yml
fat_free_crm-0.17.2 db/demo/accounts.yml
fat_free_crm-0.17.1 db/demo/accounts.yml