Skip to content

Commit a125291

Browse files
committed
update: add basic setup guide with gotchas I ran into
1 parent 27a95cf commit a125291

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

.ruby-version

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.1.6

setup.md

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Setup Guide
2+
3+
1. Clone the repository
4+
2. `bundle install` dependencies
5+
3. `bundle exec rake db:create`
6+
4. `bin/rails db:migrate RAILS_ENV=test`
7+
8+
rbenv local `3.1.6` (what Admin currently uses)
9+
10+
Added getting the `bullet-train-billing` repo via GemFury in `Gemfile`
11+
```
12+
source "<Value from Admin Gemfile>@gem.fury.io/bullettrain" do
13+
gem 'bullet_train-billing'
14+
end
15+
```
16+
17+
Updated `charlock_holmes` to compatible version in `Gemfile.lock` (was unsure if I should commit this)
18+
```
19+
charlock_holmes (0.7.9)
20+
```
21+
22+
To get all migrations to run successfully I had to update this migration's version from `7.1` -> `7.0`
23+
(was unsure if I should commit this)
24+
```
25+
class AddTrackableToBillingUsageTracker < ActiveRecord::Migration[7.0]
26+
def change
27+
add_column :billing_usage_trackers, :trackable_id, :bigint
28+
add_column :billing_usage_trackers, :trackable_type, :string, default: "Team"
29+
add_index :billing_usage_trackers, [:trackable_id, :trackable_type]
30+
end
31+
end
32+
```

0 commit comments

Comments
 (0)