Class: CreateCacheRecords

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/review_and_approve/install/templates/create_cache_records.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
9
10
# File 'lib/generators/review_and_approve/install/templates/create_cache_records.rb', line 2

def change
  create_table :cache_records do |t|
    t.string  :key
    t.text :cache_data     
    t.timestamps
  end

  add_index :cache_records, :key
end