1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-04 15:24:23 +01:00
fab-manager/db/migrate/20210621123954_create_statistic_profile_prepaid_packs.rb

16 lines
427 B
Ruby
Raw Normal View History

2021-06-21 17:39:48 +02:00
# 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