volontariat/voluntary_proposition

View on GitHub
dummy/db/migrate/20140404165907_create_mongo_db_documents.voluntary_engine.rb

Summary

Maintainability
A
0 mins
Test Coverage
# This migration comes from voluntary_engine (originally 20120922201955)
class CreateMongoDbDocuments < ActiveRecord::Migration
  def change
    create_table :mongo_db_documents do |t|
      t.string :mongo_db_object_id
      t.string :klass_name
      t.string :name
      t.string :slug
      t.timestamps
    end
    
    add_index :mongo_db_documents, [:mongo_db_object_id, :klass_name], unique: true
  end
end