Sha256: 633126e23ce8e04cbe1a079875fa85d42d25da54846ad2e257f728c2439826d8
Contents?: true
Size: 425 Bytes
Versions: 4
Compression:
Stored size: 425 Bytes
Contents
class <%= migration_class_name %> < ActiveRecord::Migration def self.up execute 'ALTER TABLE <%= plural_name %> ENGINE = MyISAM' execute 'CREATE FULLTEXT INDEX fulltext_<%= plural_name %> ON <%= plural_name %> (<%= fulltext_fields.join(',') %>)' end def self.down execute 'ALTER TABLE <%= plural_name %> ENGINE = InnoDB' execute 'DROP INDEX fulltext_<%= plural_name %> ON <%= plural_name %>' end end
Version data entries
4 entries across 3 versions & 1 rubygems