Sha256: cdea4ac4a7465ec4c9ea7ce881f3a8b5fc1b94df4ef15eefc9550fa6e483b8fb

Contents?: true

Size: 653 Bytes

Versions: 15

Compression:

Stored size: 653 Bytes

Contents

class UpdateConfigurationJoinTables < ActiveRecord::Migration
  def up
    if column_exists? :configuration_item_types_configurations, :created_at
      remove_column :configuration_item_types_configurations, :created_at
      remove_column :configuration_item_types_configurations, :updated_at

      remove_column :configuration_items_configuration_options, :created_at
      remove_column :configuration_items_configuration_options, :updated_at
      
      add_index :configuration_item_types_configurations, [:configuration_item_type_id, :configuration_id], :unique => true, :name => 'conf_config_type_uniq_idx'
    end
  end

  def down
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

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