1 class CreateWorkflows < ActiveRecord::Migration
3 create_table :workflows do |t|
7 t.datetime :modified_at
8 t.string :modified_by_client_uuid
9 t.string :modified_by_user_uuid
17 add_index :workflows, :uuid, :unique => true
18 add_index :workflows, :owner_uuid
19 add_index :workflows, ["uuid", "owner_uuid", "modified_by_client_uuid", "modified_by_user_uuid", "name"], name: 'workflows_search_idx'
20 execute "CREATE INDEX workflows_full_text_search_idx ON workflows USING gin(#{Workflow.full_text_tsvector});"
24 remove_index :workflows, :name => 'workflows_full_text_search_idx'
25 remove_index :workflows, :name => 'workflows_search_idx'
26 remove_index :workflows, :owner_uuid
27 remove_index :workflows, :uuid