mirror of
https://github.com/discourse/discourse-subscriptions.git
synced 2025-03-07 18:19:46 +00:00
12 lines
313 B
Ruby
12 lines
313 B
Ruby
|
class CreateCustomers < ActiveRecord::Migration[5.2]
|
||
|
def change
|
||
|
create_table :discourse_patrons_customers do |t|
|
||
|
t.string :customer_id, null: false
|
||
|
t.references :user, foreign_key: true
|
||
|
t.timestamps
|
||
|
end
|
||
|
|
||
|
add_index :discourse_patrons_customers, :customer_id, unique: true
|
||
|
end
|
||
|
end
|