Class: CreateWiceGridSerializedQueries

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/wice_grid/templates/create_wice_grid_serialized_queries.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#changeObject

:nodoc:



2
3
4
5
6
7
8
9
10
11
12
# File 'lib/generators/wice_grid/templates/create_wice_grid_serialized_queries.rb', line 2

def change #:nodoc:
  create_table :wice_grid_serialized_queries do |t|
    t.column :name,      :string
    t.column :grid_name, :string
    t.column :query,     :text

    t.timestamps
  end
  add_index :wice_grid_serialized_queries, :grid_name
  add_index :wice_grid_serialized_queries, [:grid_name, :id]
end