Ron Warholic
5e042c2577
Added migration file
11 years ago
Ron Warholic
86ada003d6
Fixed default sort and added migration for shop_id => Integer
11 years ago
Jason Denney
8d8058dea0
Comment for bike brands sql insert issue
11 years ago
Ron Warholic
93b8e3b055
Fixed the seeder loading the sql incorrectly; now stubs the index out so it generates the sequence number.
11 years ago
Jason Denney
47f616b7b0
Moving bike model to the bikes table
Leaving the bike_models table and bikes.bike_model_id column as a backup.
11 years ago
Jason Denney
cecb3b1a32
Changing bike_status to bike_purporse
11 years ago
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
11 years ago
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
bccd5f10d7
Updated seeds.rb for PG
12 years ago
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
12 years ago
Jason Denney
238a3af7d5
minor change to check for seeding admin
12 years ago
Jason Denney
b89873d0e5
Updating schema file w/ removed user nick
12 years ago
Jason Denney
d431024f01
Adding bike_admin fixture, fixed seeds.rb
12 years ago
Jason Denney
ff60fdd67f
Removing nickname from user
12 years ago
Jason Denney
7c85e2901f
Changes needed to run in produciton
12 years ago
Jason Denney
9021294c4b
Auth by username instead of email
Added username to User table/model
12 years ago
Jason Denney
d7755f00ed
Initial stab at check-in feature
12 years ago
darmock
f34def2c09
Store role_id as an integer instead of a string
12 years ago
Jason Denney
a083ed715b
Renamed UserRoles to UserRole Joins, Needed ID column in user_role_joins table
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
John N. Milner
941f7a267b
Add migration to accompany 55fbd06305
12 years ago
John N. Milner
55fbd06305
Closes #1
12 years ago
Jason Denney
ad26dab160
Finished adding default Bike task list
12 years ago
Jason Denney
545c33b953
Added TaskList and Task migrations and models
12 years ago
Jason Denney
2d51bd1d9a
Creating Transactions works
-Need to scope transactions for users
-Only Admins should be able to create transactions
12 years ago
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
12 years ago
Jason Denney
d95f51eeca
Created customers
12 years ago
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.
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
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
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
4ebcbca081
Still a work in progress
12 years ago
Jason Denney
d7f5eb26bf
Experimenting with Netzke/ ExtJS
12 years ago
Jason Denney
939ea5b9db
Refactored log controller, added log editing
Refactored log controller, added log editing
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
885caefaf7
Create factory for seeding db with fake bikes, update seeds.rb
12 years ago
Jason Denney
29af72787b
Add Bike Style model and defaults
12 years ago
Jason Denney
0d5b93b0b1
fix if in seeds.rb
12 years ago
Jason Denney
3ce2cef2f6
Add extra default condition
12 years ago
Jason Denney
a307d5f6d5
Load bike brands and models into sqlite3, This will work for now
12 years ago
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
12 years ago
Jason Denney
6937cc3146
Added sql for bike brands and their models
12 years ago
Jason Denney
609870c264
removing puts, and fixing File.join
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
Jason Denney
c99d1e5f55
Can now seed via rake db:seed
Only using fixtures for seeding, using factories for testing.
-For some reason, module fixtures won't auto create dates, must include updated_at and created_at dates in fixture.
12 years ago
Jason Denney
56da361bca
Edit migration to allow a user to own a bike
12 years ago