Skip to content

Commit a6f34ad

Browse files
committed
Adds a couple columns for subs/users
1 parent 1b863d7 commit a6f34ad

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
class AddTimestampsToSubscriptions < ActiveRecord::Migration[5.1]
2+
def change
3+
add_column :subscriptions, :created_at, :datetime
4+
add_column :subscriptions, :updated_at, :datetime
5+
end
6+
end

db/schema.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#
1111
# It's strongly recommended that you check this file into your version control system.
1212

13-
ActiveRecord::Schema.define(version: 20180403134758) do
13+
ActiveRecord::Schema.define(version: 20180403151752) do
1414

1515
# These are extensions that must be enabled in order to support this database
1616
enable_extension "plpgsql"
@@ -20,6 +20,11 @@
2020
t.string "paid"
2121
t.datetime "billing_date"
2222
t.integer "cost"
23+
t.integer "cc_number"
24+
t.integer "cc_expiration"
25+
t.integer "cc_code"
26+
t.datetime "created_at"
27+
t.datetime "updated_at"
2328
t.index ["user_id"], name: "index_subscriptions_on_user_id"
2429
end
2530

0 commit comments

Comments
 (0)