Sha256: d8696ef692dbf2ea3914979db05677f8f5b41f48297144e3a9eee441b6ef54f0

Contents?: true

Size: 470 Bytes

Versions: 21

Compression:

Stored size: 470 Bytes

Contents

class DropLegacyPushTypeTaxonomies < ActiveRecord::Migration
  def up
    if ActiveRecord::Base.connection.table_exists? :push_type_taxonomies
      drop_table :push_type_taxonomies
    end
    if ActiveRecord::Base.connection.table_exists? :push_type_taxonomy_hierarchies
      drop_table :push_type_taxonomy_hierarchies
    end
    if ActiveRecord::Base.connection.column_exists? :push_type_assets, :tags
      remove_column :push_type_assets, :tags
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
push_type_core-0.10.4 db/migrate/20160201150228_drop_legacy_push_type_taxonomies.rb
push_type_core-0.10.3 db/migrate/20160201150228_drop_legacy_push_type_taxonomies.rb
push_type_core-0.10.2 db/migrate/20160201150228_drop_legacy_push_type_taxonomies.rb
push_type_core-0.10.1 db/migrate/20160201150228_drop_legacy_push_type_taxonomies.rb
push_type_core-0.10.0 db/migrate/20160201150228_drop_legacy_push_type_taxonomies.rb
push_type_core-0.10.0.beta.5 db/migrate/20160201150228_drop_legacy_push_type_taxonomies.rb
push_type_core-0.10.0.beta.3 db/migrate/20160201150228_drop_legacy_push_type_taxonomies.rb
push_type_core-0.9.5 db/migrate/20160201150228_drop_legacy_push_type_taxonomies.rb
push_type_core-0.9.3 db/migrate/20160201150228_drop_legacy_push_type_taxonomies.rb
push_type_core-0.9.2 db/migrate/20160201150228_drop_legacy_push_type_taxonomies.rb
push_type_core-0.9.1 db/migrate/20160201150228_drop_legacy_push_type_taxonomies.rb
push_type_core-0.9.0 db/migrate/20160201150228_drop_legacy_push_type_taxonomies.rb
push_type_core-0.9.0.beta.4 db/migrate/20160201150228_drop_legacy_push_type_taxonomies.rb
push_type_core-0.9.0.beta.3 db/migrate/20160201150228_drop_legacy_push_type_taxonomies.rb
push_type_core-0.9.0.beta.2 db/migrate/20160201150228_drop_legacy_push_type_taxonomies.rb
push_type_core-0.8.2 db/migrate/20160201150228_drop_legacy_push_type_taxonomies.rb
push_type_core-0.8.1 db/migrate/20160201150228_drop_legacy_push_type_taxonomies.rb
push_type_core-0.8.0 db/migrate/20160201150228_drop_legacy_push_type_taxonomies.rb
push_type_core-0.8.0.beta.3 db/migrate/20160201150228_drop_legacy_push_type_taxonomies.rb
push_type_core-0.8.0.beta.2 db/migrate/20160201150228_drop_legacy_push_type_taxonomies.rb