Class: PGCrypto::ColumnConverter

Inherits:
Object
  • Object
show all
Defined in:
lib/pgcrypto/column_converter.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.migrate!Object



6
7
8
# File 'lib/pgcrypto/column_converter.rb', line 6

def self.migrate!
  new.migrate!
end

Instance Method Details

#migrate!Object



10
11
12
13
14
# File 'lib/pgcrypto/column_converter.rb', line 10

def migrate!
  PGCrypto::Column.find_each(batch_size: 100) do |column|
    migrate_column(column)
  end
end