mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-11-28 09:24:24 +01:00
19 lines
457 B
Ruby
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
|