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)
12 years ago
Jason Denney
d431024f01
Adding bike_admin fixture, fixed seeds.rb
12 years ago
Jason Denney
d7755f00ed
Initial stab at check-in feature
12 years ago
Jason Denney
91bb2ea43e
Changing UserRole to UserRoleJoin
Beware, this breaks the view for some reason
12 years ago
John N. Milner
a3fcdec10c
WIP adding user roles view; adding end datetime to user roles
12 years ago
Jason Denney
aa3658ec63
fix wrong id in fixtures
12 years ago
Jason Denney
c00c8fa3df
Fixed user profiles and added NOTE action to bike_logs
12 years ago
Jason Denney
db9982dcd2
Added user roles and authentication, sign in/out
12 years ago
Jason Denney
3f850d61f1
Added extra status to bike statuses
12 years ago
Jason Denney
b2eefd8163
actsasloggable transaction actions fixtures, resources, controller, and views
12 years ago
Jason Denney
139f5ccf9b
ActsAsLoggable User Actions fixtures, resources, controller, and views
12 years ago
Jason Denney
29af72787b
Add Bike Style model and defaults
12 years ago
Jason Denney
3ce2cef2f6
Add extra default condition
12 years ago
Jason Denney
7ba1ef6225
move test/fixtures to db/seed/fixtures since they are only used for seeding, not testing.
12 years ago