femslash-city/migrations/016_site_updated_count.rb

10 lines
194 B
Ruby
Raw Permalink Normal View History

Sequel.migration do
up {
DB.add_column :sites, :changed_count, :integer, default: 0
DB.add_index :sites, :changed_count
}
down {
DB.drop_column :sites, :changed_count
}
end