Sha256: 8877c41e489be2788f71ed689bcbaa4d6dcd84f733538dfe4b88eeeb22c215db

Contents?: true

Size: 342 Bytes

Versions: 13

Compression:

Stored size: 342 Bytes

Contents

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

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
voluntary-0.7.1 db/migrate/20120922201955_create_mongo_db_documents.rb
voluntary-0.7.0 db/migrate/20120922201955_create_mongo_db_documents.rb
voluntary-0.6.0 db/migrate/20120922201955_create_mongo_db_documents.rb
voluntary-0.5.2 db/migrate/20120922201955_create_mongo_db_documents.rb
voluntary-0.5.1 db/migrate/20120922201955_create_mongo_db_documents.rb
voluntary-0.5.0 db/migrate/20120922201955_create_mongo_db_documents.rb
voluntary-0.4.0 db/migrate/20120922201955_create_mongo_db_documents.rb
voluntary-0.3.0 db/migrate/20120922201955_create_mongo_db_documents.rb
voluntary-0.2.4 db/migrate/20120922201955_create_mongo_db_documents.rb
voluntary-0.2.3 db/migrate/20120922201955_create_mongo_db_documents.rb
voluntary-0.2.2 db/migrate/20120922201955_create_mongo_db_documents.rb
voluntary-0.2.1 db/migrate/20120922201955_create_mongo_db_documents.rb
voluntary-0.2.0 db/migrate/20120922201955_create_mongo_db_documents.rb