Commit Graph
30 Commits
Author SHA1 Message Date
Jason Denney 4d7634605c Fixing search form for bikes updated to netzke 8.4
Updated Netzke 8.4, better search styling, case insensitive search, can search associations
Fixed mistake where bikes.condition_id was a string… durrrrrr needs to be integer
2013-08-15 22:05:29 -04:00
Jason Denney 7736ac5c34 Added credit tracking and stats
Added credit_conversions table so conversions can change over time
Added default credit conversion fixture
Added User#transaction_logs
Added User#total_credits (earned minus spent)
Added User#total_credits_spent (through transaction_logs)
Added User#total_earned_credits (complicated query which finds the conversion rate for a log depending on its created_at date)
2013-06-29 15:19:38 -04:00
Jason Denney f0ce8b7171 Switch DB from sqlite to Postgres
-Postgres for production
-Migrations don't translate well between sqlite and postgres, better to just develop using the same database as production.
-Fixed migrations to work with Postgres
-Updated Readme for PG install instructions
-database config moved to .example
2013-06-25 23:50:34 -04:00
Jason Denney ff60fdd67f Removing nickname from user 2013-06-13 20:59:01 -04:00
John N. Milner c5b16139f5 Merge branch 'master' into denney-new-user-form
Conflicts:
	db/schema.rb
2013-05-30 22:03:53 -04:00
Jason Denney 9021294c4b Auth by username instead of email
Added username to User table/model
2013-05-25 11:08:58 -04:00
darmock f34def2c09 Store role_id as an integer instead of a string 2013-05-10 03:30:54 -04:00
Jason Denney a083ed715b Renamed UserRoles to UserRole Joins, Needed ID column in user_role_joins table 2013-04-24 07:56:02 -04:00
Jason Denney 91bb2ea43e Changing UserRole to UserRoleJoin
Beware, this breaks the view for some reason
2013-04-23 23:21:17 -04:00
John N. Milner a3fcdec10c WIP adding user roles view; adding end datetime to user roles 2013-04-18 22:16:13 -04:00
John N. Milner 941f7a267b Add migration to accompany 55fbd06305 2013-04-07 16:50:53 -04:00
Jason Denney 545c33b953 Added TaskList and Task migrations and models 2013-02-08 22:10:52 -05:00
Jason Denney 2d51bd1d9a Creating Transactions works
-Need to scope transactions for users
-Only Admins should be able to create transactions
2013-01-20 16:14:53 -05:00
Jason Denney 1b7daa45ca Nested isn't working, another approach, add trans validations
User a transactions border, select the customer from a view of users and customers
2013-01-20 14:57:43 -05:00
Jason Denney d95f51eeca Created customers 2013-01-20 13:52:19 -05:00
Jason Denney 11e738b428 Adding transactions
-Need to create a customers table to store contact information of customers who are not a user.
-Need to scope "User Transactions" for users, staff, and admin. Need to have a "All Shop Transactions" tab.
-Need to add conditional UX to form.
2013-01-19 15:59:47 -05:00
Jason Denney 189137ba9d Almost usable, still a lot of work left
-Moved bikes to User model instead of profile
-User can copy user log to a bike log with new actsasloggable
-Added user stats
-some css was messing up checkboxes, need to figure out which stylesheet was doing that
2012-12-31 15:38:34 -05:00
Jason Denney db9982dcd2 Added user roles and authentication, sign in/out 2012-12-29 16:22:24 -05:00
Jason Denney 4ebcbca081 Still a work in progress 2012-12-26 21:21:58 -05:00
Jason Denney 7bf4c4d601 Added bike_brands and bike_models sql data
-Update some migrations to match source schema, will need to add timestamps back eventually
2012-12-08 14:59:49 -05:00
Jason Denney 56da361bca Edit migration to allow a user to own a bike 2012-12-05 09:25:14 -05:00
Jason Denney 70b7b33909 Adding transaction migration 2012-12-05 00:07:04 -05:00
Jason Denney 34c13a7717 Make sure some columns are never null. 2012-12-04 23:36:50 -05:00
Jason Denney 312fa7d787 Adding bike attribute tables migrations 2012-12-04 23:15:34 -05:00
Jason Denney 2ac1b7dcd9 formatting 2012-12-04 23:14:53 -05:00
Jason Denney 8f276b6ffc Added bike_statuses. 2012-12-04 21:53:05 -05:00
Jason Denney d6622b1bbd Add User Profile migration 2012-12-04 20:51:34 -05:00
Jason Denney 219d7616c6 Add bike migration 2012-12-04 17:35:02 -05:00
Jason Denney ea8dd6842c Adding acts_as_loggable migrations 2012-12-04 17:08:18 -05:00
Jason Denney aa3ed3d43b git init 2012-12-04 00:46:15 -05:00