Class: CreateDbCaches
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateDbCaches
- Defined in:
- lib/generators/db_cache_store/install/templates/migration.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 8 9 |
# File 'lib/generators/db_cache_store/install/templates/migration.rb', line 2 def change create_table :db_caches do |t| t.string :key t.binary :value, :limit => 4294967295 t. end add_index :db_caches, :key end |