Updated

db/migrate / 20170903162156_adjust_petition_sequences_for_twenty_seventeen.rb

A
11 lines of codes
2 methods
2.0 complexity/method
1 churn
4.0 complexity
0 duplications
class AdjustPetitionSequencesForTwentySeventeen < ActiveRecord::Migration
  1. AdjustPetitionSequencesForTwentySeventeen has no descriptive comment
def up execute "ALTER SEQUENCE archived_petitions_id_seq MAXVALUE 199999" execute "ALTER SEQUENCE petitions_id_seq START WITH 200000 RESTART WITH 200000 MINVALUE 200000" end def down execute "ALTER SEQUENCE archived_petitions_id_seq MAXVALUE 99999" execute "ALTER SEQUENCE petitions_id_seq START WITH 100000 RESTART WITH 100000 MINVALUE 100000" end end