houdini/db/migrate/20210127193411_create_ticket_to_legacy_tickets.rb

16 lines
508 B
Ruby
Raw Normal View History

2021-02-02 21:04:53 +00:00
# frozen_string_literal: true
# License: AGPL-3.0-or-later WITH WTO-AP-3.0-or-later
# Full license explanation at https://github.com/houdiniproject/houdini/blob/master/LICENSE
class CreateTicketToLegacyTickets < ActiveRecord::Migration[6.1]
def change
create_table :ticket_to_legacy_tickets, id: :string do |t|
t.references :ticket_purchase, foreign_key: true, type: :string
t.references :ticket, foreign_key: true
t.integer :amount, default: 0
t.timestamps
end
end
end