Sha256: 12c72289813781bfa195816a7062e78937948362156eee074dca299042507597
Contents?: true
Size: 807 Bytes
Versions: 2
Compression:
Stored size: 807 Bytes
Contents
class Create<%=rule_class%> < ActiveRecord::Migration def self.up create_table :re_<%=rule_name%> do |t| t.string :title end create_table :re_<%=rule_name%>_words do |t| t.integer :writer_id t.string :word t.integer :ignore_word end add_index :re_<%=rule_name%>_words, [:writer_id] add_index :re_<%=rule_name%>_words, [:writer_id, :word] create_table :re_<%=rule_name%>_count do |t| t.integer :word_id t.string :time_code t.integer :word_count end add_index :re_<%=rule_name%>_count, [:word_id] add_index :re_<%=rule_name%>_count, [:word_id, :time_code] end def self.down drop_table :re_<%=rule_name%> drop_table :re_<%=rule_name%>_words drop_table :re_<%=rule_name%>_count end end
Version data entries
2 entries across 2 versions & 1 rubygems