Class: EntityStorage::AddEntitiesTable
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- EntityStorage::AddEntitiesTable
- Defined in:
- lib/entity_storage.rb
Overview
This migration is required for EntityStorage to work correctly
Class Method Summary collapse
-
.create ⇒ Object
up and down functions call broken code in Rail3 migrations gem, called it ‘create’.
Class Method Details
.create ⇒ Object
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 => 512, :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 |