14 lines
254 B
Ruby
14 lines
254 B
Ruby
class AddsTsvectorUpdateTrigger < ActiveRecord::Migration
|
|
|
|
def up
|
|
add_column :proposals, :tsv, :tsvector
|
|
add_index :proposals, :tsv, using: "gin"
|
|
end
|
|
|
|
def down
|
|
remove_index :proposals, :tsv
|
|
remove_column :proposals, :tsv
|
|
end
|
|
|
|
end
|