1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-10 21:24:20 +01:00
fab-manager/db/migrate/20210621122103_create_prepaid_packs.rb

19 lines
457 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
2021-06-21 17:39:48 +02:00
t.string :validity_interval
t.integer :validity_count
2021-06-24 17:59:05 +02:00
t.boolean :disabled
2021-06-21 14:58:49 +02:00
t.timestamps
end
end
end