Sha256: b0be5e07a6674b4b321c5a9cecb38f77f5ff36b56c0561f353f2113fb08684bd
Contents?: true
Size: 324 Bytes
Versions: 3
Compression:
Stored size: 324 Bytes
Contents
class CreatePostFulltextIndex < ActiveRecord::Migration def self.up execute 'ALTER TABLE posts ENGINE = MyISAM' execute 'CREATE FULLTEXT INDEX fulltext_posts ON posts (title,content)' end def self.down execute 'ALTER TABLE posts ENGINE = InnoDB' execute 'DROP INDEX fulltext_posts ON posts' end end
Version data entries
3 entries across 3 versions & 1 rubygems