discourse-subscriptions/db/migrate/20190913010928_create_payments_table.rb

12 lines
233 B
Ruby
Raw Normal View History

2019-09-13 14:34:06 +10:00
# frozen_string_literal: true
class CreatePaymentsTable < ActiveRecord::Migration[5.2]
def change
2019-09-13 14:35:13 +10:00
create_table :payments do |t|
t.timestamps
2019-09-13 14:34:06 +10:00
end
2019-09-13 14:35:13 +10:00
add_index :payments, [:payment_intent_id], unique: true
2019-09-13 14:34:06 +10:00
end
end