Sha256: 29f8b0a79352051ddff44d90796f32b412c4cb018405978d2e2c02a6c0c82f3b

Contents?: true

Size: 263 Bytes

Versions: 52

Compression:

Stored size: 263 Bytes

Contents

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

Version data entries

52 entries across 52 versions & 2 rubygems

Version Path
kuhsaft-2.2.5 db/migrate/05_remove_cms_admin.rb
kuhsaft-2.2.4 db/migrate/05_remove_cms_admin.rb
kuhsaft-2.2.3 db/migrate/05_remove_cms_admin.rb
kuhsaft-2.2.2 db/migrate/05_remove_cms_admin.rb
kuhsaft-2.2.1 db/migrate/05_remove_cms_admin.rb
kuhsaft-2.2.0 db/migrate/05_remove_cms_admin.rb
kuhsaft-2.1.2 db/migrate/05_remove_cms_admin.rb
kuhsaft-2.1.1 db/migrate/05_remove_cms_admin.rb
kuhsaft-2.1.0 db/migrate/05_remove_cms_admin.rb
kuhsaft-1.8.6 db/migrate/05_remove_cms_admin.rb
kuhsaft-1.8.5 db/migrate/05_remove_cms_admin.rb
kuhsaft-2.0.3 db/migrate/05_remove_cms_admin.rb
kuhsaft-2.0.2 db/migrate/05_remove_cms_admin.rb
kuhsaft-1.8.4 db/migrate/05_remove_cms_admin.rb
kuhsaft-1.8.1 db/migrate/05_remove_cms_admin.rb
kuhsaft-2.0.1 db/migrate/05_remove_cms_admin.rb
kuhsaft-2.0.0 db/migrate/05_remove_cms_admin.rb
kuhsaft-1.8.0 db/migrate/05_remove_cms_admin.rb
kuhsaft-1.7.1 db/migrate/05_remove_cms_admin.rb
kuhsaft-1.7.0 db/migrate/05_remove_cms_admin.rb