1
0
mirror of synced 2026-08-31 19:35:40 +00:00

customer model

This commit is contained in:
Rimian Perkins
2019-10-26 11:31:19 +11:00
parent 1f7549060d
commit dcb4b82dec
5 changed files with 54 additions and 15 deletions
@@ -0,0 +1,11 @@
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