Sha256: ccaa014f2b8f9ae87a67c35463016d02fd12df7c82646db809b923da551ebf88

Contents?: true

Size: 260 Bytes

Versions: 16

Compression:

Stored size: 260 Bytes

Contents

class RemoveCmsAdmin < ActiveRecord::Migration
  def change
    if ActiveRecord::Base.connection.table_exists?(:qbrick_cms_admins)
      drop_table :qbrick_cms_admins
    else
      puts 'qbrick_cms_admins table does not exist, not deleting'
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
qbrick-2.7.1 db/migrate/05_remove_cms_admin.rb
qbrick-2.7 db/migrate/05_remove_cms_admin.rb
qbrick-2.6.10 db/migrate/05_remove_cms_admin.rb
qbrick-2.6.9 db/migrate/05_remove_cms_admin.rb
qbrick-2.6.8 db/migrate/05_remove_cms_admin.rb
qbrick-2.6.7 db/migrate/05_remove_cms_admin.rb
qbrick-2.6.6 db/migrate/05_remove_cms_admin.rb
qbrick-2.6.5 db/migrate/05_remove_cms_admin.rb
qbrick-2.6.4 db/migrate/05_remove_cms_admin.rb
qbrick-2.6.3 db/migrate/05_remove_cms_admin.rb
qbrick-2.6.2 db/migrate/05_remove_cms_admin.rb
qbrick-2.6.1 db/migrate/05_remove_cms_admin.rb
qbrick-2.6.0 db/migrate/05_remove_cms_admin.rb
qbrick-2.5.2 db/migrate/05_remove_cms_admin.rb
qbrick-2.5.1 db/migrate/05_remove_cms_admin.rb
qbrick-2.5.0 db/migrate/05_remove_cms_admin.rb