scinote-web/db/migrate/20160527152000_report_grouping_removal.rb

10 lines
214 B
Ruby
Raw Normal View History

2017-06-30 16:23:28 +08:00
class ReportGroupingRemoval < ActiveRecord::Migration[4.2]
def up
2016-07-21 19:11:15 +08:00
remove_column :reports, :grouped_by
end
def down
add_column :reports, :grouped_by, :integer, :null => false, :default => 0
end
end