Sha256: ecf42287f6805b43bb091481d15b288b77d3ba60eae55aaab0467dd82641b450

Contents?: true

Size: 748 Bytes

Versions: 42

Compression:

Stored size: 748 Bytes

Contents

class RemoveClassificationsAndClassifiers < ActiveRecord::Migration

  def self.up
    drop_table "classifications"
    drop_table "classifiers"

  end

  def self.down

    create_table "classifications", :force => true do |t|
      t.integer  "owner_id"
      t.integer  "target_id"
      t.datetime "created_at"
      t.datetime "updated_at"
    end

    add_index "classifications", ["owner_id", "target_id"], :name => "ix_classifications_fk"

    create_table "classifiers", :force => true do |t|
      t.string   "title"
      t.string   "description"
      t.string   "notation"
      t.datetime "created_at"
      t.datetime "updated_at"
    end

    add_index "classifiers", ["notation"], :name => "ix_classifiers_on_notation"

  end

end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
iqvoc-4.3.3 db/migrate/20110408120357_remove_classifications_and_classifiers.rb
iqvoc-3.2.11 db/migrate/20110408120357_remove_classifications_and_classifiers.rb
iqvoc-3.2.10 db/migrate/20110408120357_remove_classifications_and_classifiers.rb
iqvoc-3.2.9 db/migrate/20110408120357_remove_classifications_and_classifiers.rb
iqvoc-4.3.2 db/migrate/20110408120357_remove_classifications_and_classifiers.rb
iqvoc-4.3.1 db/migrate/20110408120357_remove_classifications_and_classifiers.rb
iqvoc-4.3.0 db/migrate/20110408120357_remove_classifications_and_classifiers.rb
iqvoc-4.2.0 db/migrate/20110408120357_remove_classifications_and_classifiers.rb
iqvoc-4.1.3 db/migrate/20110408120357_remove_classifications_and_classifiers.rb
iqvoc-4.1.2 db/migrate/20110408120357_remove_classifications_and_classifiers.rb
iqvoc-4.1.1 db/migrate/20110408120357_remove_classifications_and_classifiers.rb
iqvoc-4.1.0 db/migrate/20110408120357_remove_classifications_and_classifiers.rb
iqvoc-4.0.9 db/migrate/20110408120357_remove_classifications_and_classifiers.rb
iqvoc-4.0.8 db/migrate/20110408120357_remove_classifications_and_classifiers.rb
iqvoc-4.0.7 db/migrate/20110408120357_remove_classifications_and_classifiers.rb
iqvoc-4.0.6 db/migrate/20110408120357_remove_classifications_and_classifiers.rb
iqvoc-4.0.5 db/migrate/20110408120357_remove_classifications_and_classifiers.rb
iqvoc-4.0.4 db/migrate/20110408120357_remove_classifications_and_classifiers.rb
iqvoc-4.0.3 db/migrate/20110408120357_remove_classifications_and_classifiers.rb
iqvoc-4.0.2 db/migrate/20110408120357_remove_classifications_and_classifiers.rb