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-1.6.0 db/migrate/05_remove_cms_admin.rb
kuhsaft-1.5.0 db/migrate/05_remove_cms_admin.rb
kuhsaft-1.4.3 db/migrate/05_remove_cms_admin.rb
kuhsaft-1.4.2 db/migrate/05_remove_cms_admin.rb
kuhsaft-1.4.1 db/migrate/05_remove_cms_admin.rb
kuhsaft-1.4.0 db/migrate/05_remove_cms_admin.rb
kuhsaft-1.3.1 db/migrate/05_remove_cms_admin.rb
kuhsaft-1.2.15 db/migrate/05_remove_cms_admin.rb
kuhsaft-1.2.14 db/migrate/05_remove_cms_admin.rb
kuhsaft-1.2.13 db/migrate/05_remove_cms_admin.rb
kuhsaft-1.2.12 db/migrate/05_remove_cms_admin.rb
kuhsaft-1.2.11 db/migrate/05_remove_cms_admin.rb