Class: EntityStorage::AddEntitiesTable

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/entity_storage.rb

Overview

This migration is required for EntityStorage to work correctly

Class Method Summary collapse

Class Method Details

.createObject

up and down functions call broken code in Rail3 migrations gem, called it ‘create’



79
80
81
82
83
84
85
86
87
88
89
90
91
# File 'lib/entity_storage.rb', line 79

def self.create
  create_table "entity_storage", :force => true do |t|
t.string   "key",        :limit => 191, :null => false
#t.text     "value"
t.binary     "value"
t.datetime "created_at"
t.datetime "updated_at"
  end

  add_index "entity_storage", ["created_at"], :name => "created_at"
  add_index "entity_storage", ["key"], :name => "key"
  add_index "entity_storage", ["updated_at"], :name => "updated_at"
end