Sha256: 3eee79017593a76b87e1656ed6e7f3c8a0127f50cbbe4801eedf346311bb9a3d
Contents?: true
Size: 520 Bytes
Versions: 15
Compression:
Stored size: 520 Bytes
Contents
class UpdateAppContainer < ActiveRecord::Migration def up unless columns(:app_containers).collect {|c| c.name}.include?('type') add_column :app_containers, :type, :string execute("UPDATE app_containers SET type = app_container_record_type") remove_column :app_containers, :app_container_record_id remove_column :app_containers, :app_container_record_type add_index :app_containers, :type drop_table :desktops drop_table :organizers end end def down end end
Version data entries
15 entries across 15 versions & 1 rubygems