--- /dev/null
+class AddIndicesOfSeiga < ActiveGroonga::Migration
+ def up
+ change_table("terms") do |table|
+ table.index("seigas.title")
+ table.index("seigas.description")
+ end
+ end
+
+ def down
+ change_table("terms") do |table|
+ table.remove_index("seigas.description")
+ table.remove_index("seigas.title")
+ end
+ end
+end
-ActiveGroonga::Schema.define(:version => 20130203025712) do |schema|
+ActiveGroonga::Schema.define(:version => 20130203033331) do |schema|
schema.instance_eval do
create_table("arcs",
:type => :hash,
table.index("arcs", "origname", :name => "arcs_origname")
table.index("arcs", "summary", :name => "arcs_summary")
table.index("pmds", "path", :name => "pmds_path")
+ table.index("seigas", "description", :name => "seigas_description")
+ table.index("seigas", "title", :name => "seigas_title")
table.index("thumbs", "description", :name => "thumbs_description")
table.index("thumbs", "title", :name => "thumbs_title")
table.index("vmds", "path", :name => "vmds_path")