andela/eventx

View on GitHub
db/migrate/20160512130617_add_refund_to_booking.rb

Summary

Maintainability
A
0 mins
Test Coverage
class AddRefundToBooking < ActiveRecord::Migration
  def change
    add_column :bookings, :refund_requested, :boolean, default: false
    add_column :bookings, :time_requested, :datetime
    add_column :bookings, :granted, :boolean, default: false
    add_column :bookings, :granted_by, :integer
    add_column :bookings, :time_granted, :datetime
  end
end