Sha256: bbc1a0709cfc7c780144c6537ab61dab5949457f1042516fe8ec1bb178926601
Contents?: true
Size: 569 Bytes
Versions: 2
Compression:
Stored size: 569 Bytes
Contents
class Create<%=rule_class%> < ActiveRecord::Migration def self.up create_table :re_<%=rule_name%>_list do |t| t.string :word end add_index :re_<%=rule_name%>_list, [: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%>_list drop_table :re_<%=rule_name%>_count end end
Version data entries
2 entries across 2 versions & 1 rubygems