Sha256: e87057189b6d889b23a46fe24d30f0ef6102f8916aed1cb02b44adfd03716342

Contents?: true

Size: 270 Bytes

Versions: 46

Compression:

Stored size: 270 Bytes

Contents

namespace :database do
  desc "update postgres sequence numbers in case database has been migrated"
  task update_sequences: :environment do
    ActiveRecord::Base.connection.tables.each do |t|
      ActiveRecord::Base.connection.reset_pk_sequence!(t)
    end
  end
end

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
disco_app-0.16.1.pre.sidekiq.pre.6.pre.release lib/tasks/database.rake
disco_app-0.9.0 lib/tasks/database.rake
disco_app-0.9.1 lib/tasks/database.rake
disco_app-0.9.2 lib/tasks/database.rake
disco_app-0.9.3 lib/tasks/database.rake
disco_app-0.9.4 lib/tasks/database.rake
disco_app-0.9.5 lib/tasks/database.rake
disco_app-0.9.6 lib/tasks/database.rake
disco_app-0.9.7 lib/tasks/database.rake
disco_app-0.9.8 lib/tasks/database.rake
disco_app-0.9.9 lib/tasks/database.rake
disco_app-0.9.10 lib/tasks/database.rake
disco_app-0.9.11 lib/tasks/database.rake
disco_app-0.10.0 lib/tasks/database.rake
disco_app-0.10.1 lib/tasks/database.rake
disco_app-0.10.2 lib/tasks/database.rake
disco_app-0.10.3 lib/tasks/database.rake
disco_app-0.10.4 lib/tasks/database.rake
disco_app-0.10.5 lib/tasks/database.rake
disco_app-0.11.0 lib/tasks/database.rake