- add organization model and stuff.
user auth testing with cucumber
- comment out some rspec stuff I can't get to pass with Devise.
- create Orgs through User (using current_id).
- add membership plans
- add memberships
- add members method to Organization to lookup users who own membership plans.
update factories to create:
- organizations
- membership_plans
- memberships

with proper associations.
- add some rspec conditions for future development.
To match Stripes class names:
- Renamed MembershipPlans to just Plans everywhere
- Renamed Memberships to Subscriptions everywhere

Everything except the database has been handled in this commit.
- Update migrations and schema to use Subscriptions and Plans. Yea, you're probably not supposed to do that, but it's a test project, it was simple, and it was clean. Nobody cried.
- adding the new migration files for Subscriptions and Plans.
update routes to use plans instead of membership_plans
Grab Stripe keys from environment variables (for Heroku and dev)
- Also commented out the stripe bundles from teh Gemfile because I'm no the train and can't install them.
re-add gems now that I have net
Stripe OAuth access setup. Right now it's just a demo and doesn't do anything with the token it receives.
add Stripe Connect
Massive changes to data-model to hook users, orgs, customers, and subscriptions up
- Users now have customers (stripe customer records)
- customers now have subscriptions
- Users connected to orgs through customer records
- Orgs connected to users through customer records
- fixed migration to properly remove user-reference from subscription
- updated relationships for subscriptions, customers, and users
- updated org view to show plans
- update format of stripe initializer to be cleaner.
- cleaning up some rspec stuff.
fixing merge conflicts