1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-01 12:24:28 +01:00
fab-manager/db/migrate/20210621122103_create_prepaid_packs.rb
2021-06-24 17:59:05 +02:00

19 lines
457 B
Ruby

# 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.string :validity_interval
t.integer :validity_count
t.boolean :disabled
t.timestamps
end
end
end