]> Repos - crimata-website/commit
Add ActiveRecord, customer dashboard, separate DB architecture
authorAndrew Gundersen <adgundersen@gmail.com>
Fri, 27 Feb 2026 04:51:50 +0000 (23:51 -0500)
committerAndrew Gundersen <adgundersen@gmail.com>
Fri, 27 Feb 2026 04:51:50 +0000 (23:51 -0500)
commitfd2d4981414feb84b06ac00e518c1e4da9dd1a20
tree3c11421aafc2b0dc824d6e0a3a352d9de08b574a
parentf4fe6b20740622e7d44e61f2edee59972e433d17
Add ActiveRecord, customer dashboard, separate DB architecture

- Re-enable ActiveRecord pointing at Neon Postgres
- Add Customer model with stripe_customer_id, email, slug, status
- Add dashboard controller and Apple ID-style device view
- Redirect checkout success to /dashboard
- Webhook now calls /instances, parses response, creates Customer in Rails DB
- Add MIT License

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
16 files changed:
Dockerfile
LICENSE [new file with mode: 0644]
app/controllers/checkout_controller.rb
app/controllers/dashboard_controller.rb [new file with mode: 0644]
app/models/application_record.rb [new file with mode: 0644]
app/models/customer.rb [new file with mode: 0644]
app/views/dashboard/show.html.erb [new file with mode: 0644]
bin/docker-entrypoint
config/application.rb
config/database.yml
config/environments/development.rb
config/environments/production.rb
config/routes.rb
db/migrate/20260225212129_create_customers.rb [new file with mode: 0644]
db/migrate/20260226121544_add_status_to_customers.rb [new file with mode: 0644]
fly.toml