Sha256: 06f532df26de3571cb0c38feb0b00c1d247e2a080b3f5c7c88beb1aa12055fcf

Contents?: true

Size: 366 Bytes

Versions: 15

Compression:

Stored size: 366 Bytes

Contents

class RemoveFileSystemLoaderColumn < ActiveRecord::Migration
  def up
    remove_column :applications, :resource_loader if column_exists? :applications, :resource_loader
  end

  def down
    add_column :applications, :resource_loader, :default => "ErpApp::ApplicationResourceLoader::FileSystemLoader" unless column_exists? :applications, :resource_loader
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
erp_app-3.0.16 db/migrate/20120325123722_remove_file_system_loader_column.rb
erp_app-3.0.15 db/migrate/20120325123722_remove_file_system_loader_column.rb
erp_app-3.0.14 db/migrate/20120325123722_remove_file_system_loader_column.rb
erp_app-3.0.13 db/migrate/20120325123722_remove_file_system_loader_column.rb
erp_app-3.0.12 db/migrate/20120325123722_remove_file_system_loader_column.rb
erp_app-3.0.10 db/migrate/20120325123722_remove_file_system_loader_column.rb
erp_app-3.0.9 db/migrate/20120325123722_remove_file_system_loader_column.rb
erp_app-3.0.8 db/migrate/20120325123722_remove_file_system_loader_column.rb
erp_app-3.0.7 db/migrate/20120325123722_remove_file_system_loader_column.rb
erp_app-3.0.6 db/migrate/20120325123722_remove_file_system_loader_column.rb
erp_app-3.0.5 db/migrate/20120325123722_remove_file_system_loader_column.rb
erp_app-3.0.4 db/migrate/20120325123722_remove_file_system_loader_column.rb
erp_app-3.0.3 db/migrate/20120325123722_remove_file_system_loader_column.rb
erp_app-3.0.2 db/migrate/20120325123722_remove_file_system_loader_column.rb
erp_app-3.0.1 db/migrate/20120325123722_remove_file_system_loader_column.rb