Sha256: 47794691262f8658d4ba8d8381fe31220a67d555f0a4d3312cbbba7335bb56c1

Contents?: true

Size: 632 Bytes

Versions: 4

Compression:

Stored size: 632 Bytes

Contents

class DropAllCaboose < ActiveRecord::Migration  
  def up
    drop_table :users                if table_exists?('users')
    drop_table :roles                if table_exists?('roles')
    drop_table :permissions          if table_exists?('permissions')
    drop_table :roles_users          if table_exists?('roles_users')
    drop_table :permissions_roles    if table_exists?('permissions_roles')
    drop_table :assets               if table_exists?('assets')
    drop_table :pages                if table_exists?('pages')
    drop_table :page_permissions     if table_exists?('page_permissions')
  end
  
  def down
    
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
caboose-cms-0.0.5 db/migrate/20130421000000_drop_all_caboose.rb
caboose-cms-0.0.4 db/migrate/20130421000000_drop_all_caboose.rb
caboose-cms-0.0.3 db/migrate/20130421000000_drop_all_caboose.rb
caboose-cms-0.0.2 db/migrate/20130421000000_drop_all_caboose.rb