module IdRandomizer
Constants
- VERSION
Public Class Methods
randomize_ids(except: [])
click to toggle source
Randomize ids/start sequences from all tables found in a given database except the blacklisted ones.
# File lib/id_randomizer.rb, line 9 def self.randomize_ids(except: []) case ActiveRecord::Base.connection when ActiveRecord::ConnectionAdapters::PostgreSQLAdapter PostgreSQL.randomize_ids(except) else raise 'Database adapter not supported.' end end