mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-11-29 10:24:20 +01:00
11 lines
486 B
Ruby
11 lines
486 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
# From this migration, we allow Prices to be configured by duration.
|
||
|
# For example, a Price for a 30-minute session could be configured to be twice the price of a 60-minute session.
|
||
|
# This is useful for things like "half-day" sessions, or full-day session when the price is different than the default hour-based price.
|
||
|
class AddDurationToPrice < ActiveRecord::Migration[5.2]
|
||
|
def change
|
||
|
add_column :prices, :duration, :integer, default: 60
|
||
|
end
|
||
|
end
|