Updated

db/migrate / 20150603033108_adjust_petition_sequences.rb

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