scinote-web/db/migrate/20160527152000_report_grouping_removal.rb
2017-06-30 10:23:28 +02:00

9 lines
214 B
Ruby

class ReportGroupingRemoval < ActiveRecord::Migration[4.2]
def up
remove_column :reports, :grouped_by
end
def down
add_column :reports, :grouped_by, :integer, :null => false, :default => 0
end
end