Reinvention of the ACFB eHarvest website
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
bin
config
db
lib
log
public
spec
vendor/assets
.gitignore
.rspec
.travis.yml
Gemfile
Gemfile.lock
README.markdown
Rakefile
config.ru

README.markdown

eHarvest Build Status Code Climate

Setup

Copy config/database.example.yml to config/database.yml and configure with values for your system

album of http://imgur.com/75NlcRS,jgESCKe,JFGtsmb,rgxYGMP#0

Relations

User

relation model
belongs_to agency

Agency

relation model
has_many users
has_many orders
has_and_belongs_to_many locations
has_and_belongs_to_many agency_codes

AgencyCode

relation model
has_and_belongs_to_many agencies
has_and_belongs_to_many item_codes

Location

relation model
has_many orders
has_and_belongs_to_many agencies

ItemCode

relation model
has_many items
has_and_belongs_to_many agency_codes

Item

relation model
belongs_to item_code
has_many order_items

Order

relation model
belongs_to agency
belongs_to location
has_many order_items

OrderItem

relation model
belongs_to order
belongs_to item