rails g and small changes

Signed-off-by: Zeljko <zeljko@zwr.fi>
allow mass import of seeds

This file monkey patches the ActiveRecord to allow seeds to be
inserted 100 at a time. This will significantly boost seeding
times as we plan to have 3000 users and 1000+ products.

Signed-off-by: Zeljko <zeljko@zwr.fi>
rails g scaffold product

This also includes the seed of 1300ish products we ripped
of the K-kauppa on the net. Only names and ean bar codes.

Signed-off-by: Zeljko <zeljko@zwr.fi>
rails g scaffold user

Added 3000+ users to the seed

Signed-off-by: Zeljko <zeljko@zwr.fi>
rails g scaffold order

Seeds for 100 orders for first 100 customers.

Signed-off-by: Zeljko <zeljko@zwr.fi>
rails g scaffold order_items

Also generate items for orders. Reduced number of orders to 24,
because this is now becoming slow. A lot of items refers to the
three items that can easily be substituted (milk, cheese and cream).

Index and show for an order made to make sense, load eagerly and
show items.

Signed-off-by: Zeljko <zeljko@zwr.fi>
add bar codes to order items

Bar codes are now shown with the items when showing a
single order. This should help demo as we can scan something.

Bar codes are wrong, these are code 39, and they have EAN 13, but
it is OK, as the scanner does not tell you when code it scanned.

Signed-off-by: Zeljko <zeljko@zwr.fi>
fix: line number is in steps of ten

Signed-off-by: Zeljko <zeljko@zwr.fi>
cosmetics: big order number

Signed-off-by: Zeljko <zeljko@zwr.fi>