Skip to content

Instantly share code, notes, and snippets.

@mezis mezis/-
Created Jun 10, 2016

Embed
What would you like to do?
class TunesFillfactor < ActiveRecord::Migration
TABLES = %w[orders restaurant_assignment order_assignment order_item driver zone_metrics]
def up
TABLES.each do |table|
execute %{ALTER TABLE #{table} SET (fillfactor = 85)}
end
end
def down
TABLES.each do |table|
execute %{
ALTER TABLE #{table} SET (fillfactor = 100)
}
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.