1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-28 09:24:24 +01:00
fab-manager/db/migrate/20210621123954_create_statistic_profile_prepaid_packs.rb
2021-06-21 17:39:48 +02:00

16 lines
427 B
Ruby

# frozen_string_literal: true
# Bought and consumed prepaid-packs
class CreateStatisticProfilePrepaidPacks < ActiveRecord::Migration[5.2]
def change
create_table :statistic_profile_prepaid_packs do |t|
t.references :prepaid_pack, foreign_key: true
t.references :statistic_profile, foreign_key: true
t.integer :minutes_used, default: 0
t.datetime :expires_at
t.timestamps
end
end
end