stripe_local 0.0.2 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +49 -3
- data/app/models/stripe_local/customer.rb +5 -2
- data/app/models/stripe_local/plan.rb +3 -0
- data/app/services/stripe_local/job_queue.rb +7 -0
- data/db/migrate/20131122063517_load_stripe_tables.rb +2 -0
- data/lib/stripe_local/version.rb +1 -1
- data/spec/dummy/db/schema.rb +3 -2
- data/spec/dummy/log/development.log +96 -0
- data/spec/dummy/log/test.log +3899 -0
- data/spec/models/stripe_local/balance_spec.rb +15 -15
- data/spec/models/stripe_local/customer_spec.rb +4 -0
- data/spec/spec_helper.rb +1 -0
- metadata +3 -18
- data/spec/dummy/db/migrate/20131122104223_add_stripe_customer_id_to_clients.rb +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c55acbf30f1906db9db8f6a78582a497f71cd50e
|
4
|
+
data.tar.gz: 1abc73fdd8f218c39284ad658892563d8c12be6b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 89dc83ce29cfbb60612eb36ff3edf98a7ea0104d1a79bc35a873f3f45b4d1fbb46bd1ce3c4203f9d4fc34cba992ce517f256b588ca75e918f0c695462cac5779
|
7
|
+
data.tar.gz: 7bff5d0a529f5204ea3bf95207b863a38c3ce31aa85d8c0f6e7f9c97419f3de5d3b711cb8453a58dd851450cbc97dced00cf79f40f6567fd01d06fe137f78346
|
data/README.md
CHANGED
@@ -3,11 +3,57 @@
|
|
3
3
|
A rails engine that maintains a local store of all your Stripe resources, keeping everything up to date with Stripe via their API and Webhook service.
|
4
4
|
Manages the complexities of keeping two data sources in sync while providing the speed and simplicity of dealing with purely local data in a purely synchronous fashion.
|
5
5
|
|
6
|
-
## <b style="color:red;">[</b>UNDER CONSTRUCTION<b style="color:red;">]</b>
|
6
|
+
## <b style="color:red;">[</b>UNDER CONSTRUCTION<b style="color:red;">]</b>
|
7
|
+
### Not in running condition!
|
7
8
|
|
8
|
-
|
9
|
+
I had considered waiting to open source this project untill it was something I would be proud to put my name on. However, my free time is limited and there is no telling how long it might have taken me.
|
10
|
+
|
11
|
+
My hope is that some of you will see some potential and dig in to help me get it working. Please don't be shy, I don't claim to be an expert and I am open to your ideas for improvement.
|
12
|
+
|
13
|
+
StripeLocal is an extraction of a framework for Stripe Integration that I have built into several large CRM projects. There are likely some places in the code that still rely on the application it was extracted from. If you find such code please create an issue or fix it yourself and submit a pull request.
|
14
|
+
|
15
|
+
This is my first Rails Engine and I am still learning the ends and outs of building an engine. If you find something I am doing terribly wrong, please bring it to my attention by opening an issue. I appreciate your help.
|
16
|
+
|
17
|
+
|
18
|
+
### Pull Requests are highly encouraged!
|
19
|
+
Feel free to fork and hack. You are of course welcome to do want you want with the code. However, I do plan to stay active in developing this code base and would like to see it become a real community effort.
|
20
|
+
|
21
|
+
### How I see it
|
22
|
+
|
23
|
+
The gem is hosted at [Rubygems.org](https://rubygems.org/gems/stripe_local) like any other gem and is available for use in a Rails project by including it in your gem file
|
24
|
+
|
25
|
+
gem 'stripe_local'
|
26
|
+
|
27
|
+
After a `bundle install` you'll need to generate, and run the migrations..
|
28
|
+
|
29
|
+
rake stripe_local:install:migrations && rake db:migrate
|
30
|
+
|
31
|
+
Stripe\_local integrates with your application via a _customer class_
|
32
|
+
|
33
|
+
The _customer class_ does not need to be named *Customer*. It just needs to be an active record class and contain a call to a special class macro in its definition
|
34
|
+
|
35
|
+
class ClassName < ActiveRecord::Base
|
36
|
+
stripe_customer
|
37
|
+
end
|
38
|
+
|
39
|
+
this essentially mixes in a few modules which add a one-to-one relationship with a `Stripe::Customer` and form a `SimpleDelegator` *like* relationship.
|
40
|
+
|
41
|
+
Once one of your *customers* has a `Stripe::Customer` you may call methods on your object as if it were itself a `Stripe::Customer`
|
42
|
+
|
43
|
+
Use the generated `signup` instance method to create a `Stripe::Customer` for the object
|
44
|
+
|
45
|
+
my_client.signup({
|
46
|
+
card: "card_token",
|
47
|
+
plan: "plan_id",
|
48
|
+
coupon: "if you want",
|
49
|
+
lines: [
|
50
|
+
[10099, "this will be a line item on the initial invoice"],
|
51
|
+
[100, "optional array of (amount,description) tuples"]
|
52
|
+
]
|
53
|
+
})
|
54
|
+
|
55
|
+
my_client.account_balance #=> 0
|
9
56
|
|
10
|
-
#### Feel free to fork and hack. I'm also happy to accept pull requests...
|
11
57
|
|
12
58
|
|
13
59
|
|
@@ -4,7 +4,7 @@ module StripeLocal
|
|
4
4
|
|
5
5
|
self.primary_key = :id
|
6
6
|
|
7
|
-
|
7
|
+
belongs_to :model, inverse_of: :customer, class_name: "::#{StripeLocal::model_class}"
|
8
8
|
|
9
9
|
has_many :cards, inverse_of: :customer
|
10
10
|
|
@@ -14,7 +14,9 @@ module StripeLocal
|
|
14
14
|
|
15
15
|
has_one :subscription, inverse_of: :customer
|
16
16
|
|
17
|
-
has_one :plan, through: :subscription,
|
17
|
+
has_one :plan, through: :subscription,
|
18
|
+
inverse_of: :members,
|
19
|
+
source: :plan
|
18
20
|
|
19
21
|
class<<self
|
20
22
|
#=!=#>>>
|
@@ -91,6 +93,7 @@ module StripeLocal
|
|
91
93
|
# t.string :description
|
92
94
|
# t.string :email
|
93
95
|
# t.text :metadata
|
96
|
+
# t.integer :model_id
|
94
97
|
# t.timestamps
|
95
98
|
|
96
99
|
#=¡=>>>
|
@@ -7,11 +7,13 @@ class LoadStripeTables < ActiveRecord::Migration
|
|
7
7
|
t.boolean :delinquent
|
8
8
|
t.string :description
|
9
9
|
t.string :email
|
10
|
+
t.integer :model_id
|
10
11
|
t.text :metadata
|
11
12
|
|
12
13
|
t.timestamps
|
13
14
|
end
|
14
15
|
add_index :stripe_local_customers, :id, unique: true
|
16
|
+
add_index :stripe_local_customers, :model_id
|
15
17
|
|
16
18
|
create_table :stripe_local_cards, id: false do |t|
|
17
19
|
t.string :id, primary_key: true
|
data/lib/stripe_local/version.rb
CHANGED
data/spec/dummy/db/schema.rb
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
#
|
12
12
|
# It's strongly recommended that you check this file into your version control system.
|
13
13
|
|
14
|
-
ActiveRecord::Schema.define(version:
|
14
|
+
ActiveRecord::Schema.define(version: 20131122063517) do
|
15
15
|
|
16
16
|
# These are extensions that must be enabled in order to support this database
|
17
17
|
enable_extension "plpgsql"
|
@@ -22,7 +22,6 @@ ActiveRecord::Schema.define(version: 20131122104223) do
|
|
22
22
|
t.string "password"
|
23
23
|
t.datetime "created_at"
|
24
24
|
t.datetime "updated_at"
|
25
|
-
t.string "stripe_customer_id"
|
26
25
|
end
|
27
26
|
|
28
27
|
create_table "stripe_local_balances", force: true do |t|
|
@@ -99,12 +98,14 @@ ActiveRecord::Schema.define(version: 20131122104223) do
|
|
99
98
|
t.boolean "delinquent"
|
100
99
|
t.string "description"
|
101
100
|
t.string "email"
|
101
|
+
t.integer "model_id"
|
102
102
|
t.text "metadata"
|
103
103
|
t.datetime "created_at"
|
104
104
|
t.datetime "updated_at"
|
105
105
|
end
|
106
106
|
|
107
107
|
add_index "stripe_local_customers", ["id"], name: "index_stripe_local_customers_on_id", unique: true, using: :btree
|
108
|
+
add_index "stripe_local_customers", ["model_id"], name: "index_stripe_local_customers_on_model_id", using: :btree
|
108
109
|
|
109
110
|
create_table "stripe_local_discounts", force: true do |t|
|
110
111
|
t.string "coupon_id"
|
@@ -1288,3 +1288,99 @@ Migrating to AddStripeCustomerIdToClients (20131122104223)
|
|
1288
1288
|
[1m[35mStripeLocal::Customer Load (1.0ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."id" = $1 ORDER BY "stripe_local_customers"."id" ASC LIMIT 1 [["id", "cus_2zIbb2qmfw4KLn"]]
|
1289
1289
|
[1m[36mStripeLocal::Invoice Load (2.4ms)[0m [1mSELECT "stripe_local_invoices".* FROM "stripe_local_invoices" WHERE "stripe_local_invoices"."customer_id" = $1[0m [["customer_id", "cus_2zIbb2qmfw4KLn"]]
|
1290
1290
|
[1m[35mStripeLocal::Plan Load (1.3ms)[0m SELECT "stripe_local_plans".* FROM "stripe_local_plans" INNER JOIN "stripe_local_subscriptions" ON "stripe_local_plans"."id" = "stripe_local_subscriptions"."plan_id" WHERE "stripe_local_subscriptions"."customer_id" = $1 ORDER BY "stripe_local_plans"."id" ASC LIMIT 1 [["customer_id", "cus_2zIbb2qmfw4KLn"]]
|
1291
|
+
[1m[36mActiveRecord::SchemaMigration Load (2.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1292
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1293
|
+
Migrating to AddStripeCustomerIdToClients (20131122104223)
|
1294
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1295
|
+
[1m[35m (8.1ms)[0m ALTER TABLE "clients" DROP "stripe_customer_id"
|
1296
|
+
[1m[36mSQL (2.5ms)[0m [1mDELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131122104223'[0m
|
1297
|
+
[1m[35m (0.5ms)[0m COMMIT
|
1298
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1299
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1300
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1301
|
+
Migrating to LoadStripeTables (20131122063517)
|
1302
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1303
|
+
[1m[35m (6.0ms)[0m DROP TABLE "stripe_local_balances"
|
1304
|
+
[1m[36m (0.1ms)[0m [1mDROP INDEX "index_transactions_on_source_id_and_source_type"[0m
|
1305
|
+
[1m[35m (0.1ms)[0m DROP INDEX "index_stripe_local_transactions_on_status"
|
1306
|
+
[1m[36m (0.1ms)[0m [1mDROP INDEX "index_stripe_local_transactions_on_id"[0m
|
1307
|
+
[1m[35m (0.4ms)[0m DROP TABLE "stripe_local_transactions"
|
1308
|
+
[1m[36m (0.1ms)[0m [1mDROP INDEX "index_stripe_local_transfers_on_transaction_id"[0m
|
1309
|
+
[1m[35m (0.1ms)[0m DROP INDEX "index_stripe_local_transfers_on_status"
|
1310
|
+
[1m[36m (0.1ms)[0m [1mDROP INDEX "index_stripe_local_transfers_on_id"[0m
|
1311
|
+
[1m[35m (0.3ms)[0m DROP TABLE "stripe_local_transfers"
|
1312
|
+
[1m[36m (0.1ms)[0m [1mDROP INDEX "index_stripe_local_charges_on_transaction_id"[0m
|
1313
|
+
[1m[35m (0.1ms)[0m DROP INDEX "index_stripe_local_charges_on_invoice_id"
|
1314
|
+
[1m[36m (0.1ms)[0m [1mDROP INDEX "index_stripe_local_charges_on_customer_id"[0m
|
1315
|
+
[1m[35m (0.1ms)[0m DROP INDEX "index_stripe_local_charges_on_card_id"
|
1316
|
+
[1m[36m (0.1ms)[0m [1mDROP INDEX "index_stripe_local_charges_on_id"[0m
|
1317
|
+
[1m[35m (0.5ms)[0m DROP TABLE "stripe_local_charges"
|
1318
|
+
[1m[36m (0.1ms)[0m [1mDROP INDEX "index_stripe_local_line_items_on_invoice_id"[0m
|
1319
|
+
[1m[35m (0.1ms)[0m DROP INDEX "index_stripe_local_line_items_on_id"
|
1320
|
+
[1m[36m (0.5ms)[0m [1mDROP TABLE "stripe_local_line_items"[0m
|
1321
|
+
[1m[35m (0.1ms)[0m DROP INDEX "index_stripe_local_invoices_on_customer_id"
|
1322
|
+
[1m[36m (0.2ms)[0m [1mDROP INDEX "index_stripe_local_invoices_on_id"[0m
|
1323
|
+
[1m[35m (2.1ms)[0m DROP TABLE "stripe_local_invoices"
|
1324
|
+
[1m[36m (0.2ms)[0m [1mDROP INDEX "index_stripe_local_subscriptions_on_plan_id"[0m
|
1325
|
+
[1m[35m (0.1ms)[0m DROP INDEX "index_stripe_local_subscriptions_on_customer_id"
|
1326
|
+
[1m[36m (0.6ms)[0m [1mDROP TABLE "stripe_local_subscriptions"[0m
|
1327
|
+
[1m[35m (0.2ms)[0m DROP INDEX "index_stripe_local_discounts_on_coupon_id_and_subscription_id"
|
1328
|
+
[1m[36m (0.5ms)[0m [1mDROP TABLE "stripe_local_discounts"[0m
|
1329
|
+
[1m[35m (0.2ms)[0m DROP INDEX "index_stripe_local_coupons_on_id"
|
1330
|
+
[1m[36m (0.4ms)[0m [1mDROP TABLE "stripe_local_coupons"[0m
|
1331
|
+
[1m[35m (0.1ms)[0m DROP INDEX "index_stripe_local_plans_on_id"
|
1332
|
+
[1m[36m (1.0ms)[0m [1mDROP TABLE "stripe_local_plans"[0m
|
1333
|
+
[1m[35m (0.2ms)[0m DROP INDEX "index_stripe_local_cards_on_customer_id"
|
1334
|
+
[1m[36m (0.1ms)[0m [1mDROP INDEX "index_stripe_local_cards_on_id"[0m
|
1335
|
+
[1m[35m (0.3ms)[0m DROP TABLE "stripe_local_cards"
|
1336
|
+
[1m[36m (0.1ms)[0m [1mDROP INDEX "index_stripe_local_customers_on_id"[0m
|
1337
|
+
[1m[35m (0.3ms)[0m DROP TABLE "stripe_local_customers"
|
1338
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131122063517'[0m
|
1339
|
+
[1m[35m (53.7ms)[0m COMMIT
|
1340
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1341
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1342
|
+
Migrating to LoadStripeTables (20131122063517)
|
1343
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1344
|
+
[1m[36m (5.3ms)[0m [1mCREATE TABLE "stripe_local_customers" ("id" character varying(255), "account_balance" integer, "default_card" character varying(255), "delinquent" boolean, "description" character varying(255), "email" character varying(255), "model_id" integer, "metadata" text, "created_at" timestamp, "updated_at" timestamp) [0m
|
1345
|
+
[1m[35m (0.6ms)[0m CREATE UNIQUE INDEX "index_stripe_local_customers_on_id" ON "stripe_local_customers" ("id")
|
1346
|
+
[1m[36m (0.5ms)[0m [1mCREATE INDEX "index_stripe_local_customers_on_model_id" ON "stripe_local_customers" ("model_id")[0m
|
1347
|
+
[1m[35m (1.1ms)[0m CREATE TABLE "stripe_local_cards" ("id" character varying(255), "customer_id" character varying(255), "name" character varying(255), "exp_month" integer, "exp_year" integer, "brand" character varying(255), "last4" character varying(255), "cvc_check" character varying(255), "created_at" timestamp, "updated_at" timestamp)
|
1348
|
+
[1m[36m (0.4ms)[0m [1mCREATE UNIQUE INDEX "index_stripe_local_cards_on_id" ON "stripe_local_cards" ("id")[0m
|
1349
|
+
[1m[35m (0.5ms)[0m CREATE INDEX "index_stripe_local_cards_on_customer_id" ON "stripe_local_cards" ("customer_id")
|
1350
|
+
[1m[36m (2.0ms)[0m [1mCREATE TABLE "stripe_local_plans" ("id" character varying(255), "name" character varying(255), "amount" integer, "interval" character varying(255), "interval_count" integer DEFAULT 1, "trial_period_days" integer DEFAULT 0, "currency" character varying(255) DEFAULT 'usd', "synced" boolean DEFAULT 'f', "created_at" timestamp, "updated_at" timestamp) [0m
|
1351
|
+
[1m[35m (0.6ms)[0m CREATE UNIQUE INDEX "index_stripe_local_plans_on_id" ON "stripe_local_plans" ("id")
|
1352
|
+
[1m[36m (1.3ms)[0m [1mCREATE TABLE "stripe_local_coupons" ("id" character varying(255), "percent_off" integer, "amount_off" integer, "currency" character varying(255) DEFAULT 'usd', "duration" character varying(255), "redeem_by" timestamp, "max_redemptions" integer, "times_redeemed" integer DEFAULT 0, "duration_in_months" integer, "synced" boolean DEFAULT 'f', "created_at" timestamp, "updated_at" timestamp) [0m
|
1353
|
+
[1m[35m (0.6ms)[0m CREATE UNIQUE INDEX "index_stripe_local_coupons_on_id" ON "stripe_local_coupons" ("id")
|
1354
|
+
[1m[36m (5.5ms)[0m [1mCREATE TABLE "stripe_local_discounts" ("id" serial primary key, "coupon_id" character varying(255), "subscription_id" character varying(255), "start" timestamp, "end" timestamp, "created_at" timestamp, "updated_at" timestamp) [0m
|
1355
|
+
[1m[35m (0.6ms)[0m CREATE INDEX "index_stripe_local_discounts_on_coupon_id_and_subscription_id" ON "stripe_local_discounts" ("coupon_id", "subscription_id")
|
1356
|
+
[1m[36m (2.1ms)[0m [1mCREATE TABLE "stripe_local_subscriptions" ("id" serial primary key, "customer_id" character varying(255), "plan_id" character varying(255), "status" character varying(255), "quantity" integer DEFAULT 1, "start" timestamp, "canceled_at" timestamp, "ended_at" timestamp, "current_period_start" timestamp, "current_period_end" timestamp, "trial_start" timestamp, "trial_end" timestamp, "created_at" timestamp, "updated_at" timestamp) [0m
|
1357
|
+
[1m[35m (0.6ms)[0m CREATE INDEX "index_stripe_local_subscriptions_on_customer_id" ON "stripe_local_subscriptions" ("customer_id")
|
1358
|
+
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_stripe_local_subscriptions_on_plan_id" ON "stripe_local_subscriptions" ("plan_id")[0m
|
1359
|
+
[1m[35m (1.6ms)[0m CREATE TABLE "stripe_local_invoices" ("id" character varying(255), "customer_id" character varying(255), "amount_due" integer, "subtotal" integer, "total" integer, "attempted" boolean, "attempt_count" integer, "paid" boolean, "closed" boolean, "date" timestamp, "period_start" timestamp, "period_end" timestamp, "currency" character varying(255) DEFAULT 'usd', "starting_balance" integer, "ending_balance" integer, "charge_id" character varying(255), "discount" integer DEFAULT 0, "application_fee" integer, "next_payment_attempt" timestamp, "created_at" timestamp, "updated_at" timestamp)
|
1360
|
+
[1m[36m (0.5ms)[0m [1mCREATE UNIQUE INDEX "index_stripe_local_invoices_on_id" ON "stripe_local_invoices" ("id")[0m
|
1361
|
+
[1m[35m (0.5ms)[0m CREATE INDEX "index_stripe_local_invoices_on_customer_id" ON "stripe_local_invoices" ("customer_id")
|
1362
|
+
[1m[36m (1.4ms)[0m [1mCREATE TABLE "stripe_local_line_items" ("id" character varying(255), "invoice_id" character varying(255), "subscription" boolean DEFAULT 't', "amount" integer, "currency" character varying(255) DEFAULT 'usd', "proration" boolean, "period_start" timestamp, "period_end" timestamp, "quantity" integer, "plan_id" character varying(255), "description" character varying(255), "metadata" text, "created_at" timestamp, "updated_at" timestamp) [0m
|
1363
|
+
[1m[35m (0.6ms)[0m CREATE UNIQUE INDEX "index_stripe_local_line_items_on_id" ON "stripe_local_line_items" ("id")
|
1364
|
+
[1m[36m (0.6ms)[0m [1mCREATE INDEX "index_stripe_local_line_items_on_invoice_id" ON "stripe_local_line_items" ("invoice_id")[0m
|
1365
|
+
[1m[35m (1.5ms)[0m CREATE TABLE "stripe_local_charges" ("id" character varying(255), "card_id" character varying(255), "customer_id" character varying(255), "invoice_id" character varying(255), "transaction_id" character varying(255), "amount" integer, "captured" boolean DEFAULT 't', "refunded" boolean DEFAULT 'f', "paid" boolean, "created" timestamp, "currency" character varying(255) DEFAULT 'usd', "amount_refunded" integer DEFAULT 0, "description" character varying(255), "failure_code" character varying(255), "failure_message" character varying(255), "metadata" text, "created_at" timestamp, "updated_at" timestamp)
|
1366
|
+
[1m[36m (0.5ms)[0m [1mCREATE UNIQUE INDEX "index_stripe_local_charges_on_id" ON "stripe_local_charges" ("id")[0m
|
1367
|
+
[1m[35m (0.5ms)[0m CREATE INDEX "index_stripe_local_charges_on_card_id" ON "stripe_local_charges" ("card_id")
|
1368
|
+
[1m[36m (0.5ms)[0m [1mCREATE INDEX "index_stripe_local_charges_on_customer_id" ON "stripe_local_charges" ("customer_id")[0m
|
1369
|
+
[1m[35m (0.6ms)[0m CREATE INDEX "index_stripe_local_charges_on_invoice_id" ON "stripe_local_charges" ("invoice_id")
|
1370
|
+
[1m[36m (0.6ms)[0m [1mCREATE INDEX "index_stripe_local_charges_on_transaction_id" ON "stripe_local_charges" ("transaction_id")[0m
|
1371
|
+
[1m[35m (1.0ms)[0m CREATE TABLE "stripe_local_transfers" ("id" character varying(255), "amount" integer, "date" timestamp, "status" character varying(255), "transaction_id" character varying(255), "description" character varying(255), "metadata" text, "created_at" timestamp, "updated_at" timestamp)
|
1372
|
+
[1m[36m (0.7ms)[0m [1mCREATE UNIQUE INDEX "index_stripe_local_transfers_on_id" ON "stripe_local_transfers" ("id")[0m
|
1373
|
+
[1m[35m (0.8ms)[0m CREATE INDEX "index_stripe_local_transfers_on_status" ON "stripe_local_transfers" ("status")
|
1374
|
+
[1m[36m (0.5ms)[0m [1mCREATE INDEX "index_stripe_local_transfers_on_transaction_id" ON "stripe_local_transfers" ("transaction_id")[0m
|
1375
|
+
[1m[35m (1.4ms)[0m CREATE TABLE "stripe_local_transactions" ("id" character varying(255), "amount" integer, "available_on" timestamp, "created" timestamp, "fee" integer, "net" integer, "source_id" character varying(255), "source_type" character varying(255), "status" character varying(255), "description" character varying(255), "created_at" timestamp, "updated_at" timestamp)
|
1376
|
+
[1m[36m (0.5ms)[0m [1mCREATE UNIQUE INDEX "index_stripe_local_transactions_on_id" ON "stripe_local_transactions" ("id")[0m
|
1377
|
+
[1m[35m (0.5ms)[0m CREATE INDEX "index_stripe_local_transactions_on_status" ON "stripe_local_transactions" ("status")
|
1378
|
+
[1m[36m (0.5ms)[0m [1mCREATE INDEX "index_transactions_on_source_id_and_source_type" ON "stripe_local_transactions" ("source_id", "source_type")[0m
|
1379
|
+
[1m[35m (1.3ms)[0m CREATE TABLE "stripe_local_balances" ("id" serial primary key, "available" integer, "pending" integer, "created_at" timestamp, "updated_at" timestamp)
|
1380
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20131122063517"]]
|
1381
|
+
[1m[35m (1.0ms)[0m COMMIT
|
1382
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1383
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1384
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1385
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1386
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|