Class: CreateWiceGridSerializedQueries
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateWiceGridSerializedQueries
- Defined in:
- lib/generators/wice_grid/templates/create_wice_grid_serialized_queries.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#change ⇒ Object
:nodoc:.
Instance Method Details
#change ⇒ Object
: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. end add_index :wice_grid_serialized_queries, :grid_name add_index :wice_grid_serialized_queries, [:grid_name, :id] end |