1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-17 11:54:22 +01:00
fab-manager/db/migrate/20210621122103_create_prepaid_packs.rb

16 lines
365 B
Ruby
Raw Normal View History

2021-06-21 14:58:49 +02:00
# frozen_string_literal: true
# Prepaid-packs of hours for machines/spaces
class CreatePrepaidPacks < ActiveRecord::Migration[5.2]
def change
create_table :prepaid_packs do |t|
t.references :priceable, polymorphic: true
t.references :group, foreign_key: true
t.integer :amount
t.integer :minutes
t.timestamps
end
end
end