2
0
mirror of https://github.com/moebooru/moebooru synced 2025-08-22 01:47:48 +00:00
moebooru/db/migrate/056_add_text_search_to_versions.rb
2018-03-10 18:15:56 +09:00

11 lines
301 B
Ruby

class AddTextSearchToVersions < ActiveRecord::Migration[5.1]
def self.up
execute "alter table note_versions add column text_search_index tsvector"
execute "alter table wiki_page_versions add column text_search_index tsvector"
end
def self.down
raise IrreversibleMigration
end
end