Class: CreatePostJsonDynamicIndexes

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

Instance Method Summary collapse

Instance Method Details

#changeObject


2
3
4
5
6
7
8
# File 'lib/generators/post_json/install/templates/create_post_json_dynamic_indexes.rb', line 2

def change
  create_table :post_json_dynamic_indexes, id: :uuid do |t|
    t.text :selector, index: true, null: false
    t.uuid :model_settings_id, index: true
    t.timestamps
  end
end