Logo
Explore Help
Sign In
discourse/discourse-subscriptions
1
0
Fork 0
You've already forked discourse-subscriptions
mirror of https://github.com/discourse/discourse-subscriptions.git synced 2025-07-08 15:22:46 +00:00
Code Issues Packages Projects Releases Wiki Activity
discourse-subscriptions/db/migrate/20191203014808_create_subscriptions_customers.rb

13 lines
312 B
Ruby
Raw Permalink Normal View History

whoops forgot this again
2019-12-03 13:11:29 +11:00
# frozen_string_literal: true
add new table
2019-12-03 13:03:10 +11:00
class CreateSubscriptionsCustomers < ActiveRecord::Migration[6.0]
def change
create_table :discourse_subscriptions_customers do |t|
REFACTOR: Use models to store data (#11) * REFACTOR: Use api to add subscribe link * FIX: I18n subscribe link * REFACTOR: Use models to store some data This enables the plugin to show only subscription information which was generated on Discourse. Subscription data storage is limited to the external identifiers Stripe generates so we can interact with the API. * DEV: Test/linting fixes/rake task
2020-05-22 11:20:05 -05:00
t.string :customer_id, null: false, index: true
add new table
2019-12-03 13:03:10 +11:00
t.string :product_id
REFACTOR: Use models to store data (#11) * REFACTOR: Use api to add subscribe link * FIX: I18n subscribe link * REFACTOR: Use models to store some data This enables the plugin to show only subscription information which was generated on Discourse. Subscription data storage is limited to the external identifiers Stripe generates so we can interact with the API. * DEV: Test/linting fixes/rake task
2020-05-22 11:20:05 -05:00
t.references :user
add new table
2019-12-03 13:03:10 +11:00
t.timestamps
end
end
end
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 349ms Template: 4ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API