2018-04-09 11:53:31 -07:00
|
|
|
class AddVisibleToTickets < ActiveRecord::Migration[5.0]
|
|
|
|
|
def up
|
|
|
|
|
add_column :tickets, :visible, :boolean, default: true
|
|
|
|
|
Ticket.reset_column_information
|
2021-02-18 21:03:28 -08:00
|
|
|
Ticket.update_all(visible: true)
|
2018-04-09 11:53:31 -07:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def down
|
|
|
|
|
remove_column :tickets, :visible
|
|
|
|
|
end
|
|
|
|
|
end
|