Sha256: f81677065319685a5a3d23f1c0f388c7e7a0c6df7863e8bc3c114ace7c2bd0c0

Contents?: true

Size: 343 Bytes

Versions: 8

Compression:

Stored size: 343 Bytes

Contents

class CreateMongoDbDocuments < ActiveRecord::Migration
  def change
    create_table :mongo_db_documents do |t|
      t.integer :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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
voluntary-0.1.0 db/migrate/20120922201955_create_mongo_db_documents.rb
voluntary-0.1.0.rc4 db/migrate/20120922201955_create_mongo_db_documents.rb
voluntary-0.1.0.rc3 db/migrate/20120922201955_create_mongo_db_documents.rb
voluntary-0.1.0.rc2 db/migrate/20120922201955_create_mongo_db_documents.rb
voluntary-0.1.0.rc1 db/migrate/20120922201955_create_mongo_db_documents.rb
voluntary-0.0.3 db/migrate/20120922201955_create_mongo_db_documents.rb
voluntary-0.0.2 db/migrate/20120922201955_create_mongo_db_documents.rb
voluntary-0.0.1 db/migrate/20120922201955_create_mongo_db_documents.rb