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-3.2.8 db/migrate/20110408120357_remove_classifications_and_classifiers.rb
iqvoc-4.0.1 db/migrate/20110408120357_remove_classifications_and_classifiers.rb
iqvoc-4.0.0 db/migrate/20110408120357_remove_classifications_and_classifiers.rb
iqvoc-3.5.7 db/migrate/20110408120357_remove_classifications_and_classifiers.rb
iqvoc-3.5.6 db/migrate/20110408120357_remove_classifications_and_classifiers.rb
iqvoc-3.5.5 db/migrate/20110408120357_remove_classifications_and_classifiers.rb
iqvoc-3.5.4 db/migrate/20110408120357_remove_classifications_and_classifiers.rb
iqvoc-3.2.7 db/migrate/20110408120357_remove_classifications_and_classifiers.rb
iqvoc-3.5.3 db/migrate/20110408120357_remove_classifications_and_classifiers.rb
iqvoc-3.5.2 db/migrate/20110408120357_remove_classifications_and_classifiers.rb
iqvoc-3.5.1 db/migrate/20110408120357_remove_classifications_and_classifiers.rb
iqvoc-3.5.0 db/migrate/20110408120357_remove_classifications_and_classifiers.rb
iqvoc-3.4.0 db/migrate/20110408120357_remove_classifications_and_classifiers.rb
iqvoc-3.3.4 db/migrate/20110408120357_remove_classifications_and_classifiers.rb
iqvoc-3.3.3 db/migrate/20110408120357_remove_classifications_and_classifiers.rb
iqvoc-3.3.2 db/migrate/20110408120357_remove_classifications_and_classifiers.rb
iqvoc-3.3.1 db/migrate/20110408120357_remove_classifications_and_classifiers.rb
iqvoc-3.3.0 db/migrate/20110408120357_remove_classifications_and_classifiers.rb
iqvoc-3.2.6 db/migrate/20110408120357_remove_classifications_and_classifiers.rb
iqvoc-3.2.5 db/migrate/20110408120357_remove_classifications_and_classifiers.rb