--- /dev/null
+ActiveGroonga::Schema.define(:version => 20110707050534) do |schema|
+ schema.instance_eval do
+ create_table("arcs",
+ :type => :hash,
+ :key_type => "ShortText",
+ :force => true) do |table|
+ table.time("created_at")
+ table.short_text("extname")
+ table.boolean("locked")
+ table.short_text("origname")
+ table.short_text("summary")
+ table.time("updated_at")
+ end
+
+ create_table("pmds",
+ :force => true) do |table|
+ table.time("created_at")
+ table.short_text("path")
+ table.time("updated_at")
+ end
+
+ create_table("schema_migrations",
+ :type => :hash,
+ :key_type => "UInt64",
+ :force => true) do |table|
+ table.time("migrated_at")
+ end
+
+ create_table("sites",
+ :type => :hash,
+ :key_type => "ShortText",
+ :force => true) do |table|
+ table.time("created_at")
+ table.short_text("summary")
+ table.time("updated_at")
+ table.short_text("url")
+ end
+
+ create_table("thumbs",
+ :type => :hash,
+ :key_type => "ShortText",
+ :force => true) do |table|
+ table.time("created_at")
+ table.short_text("description")
+ table.short_text("title")
+ table.time("updated_at")
+ end
+
+ create_table("vmds",
+ :force => true) do |table|
+ table.time("created_at")
+ table.short_text("path")
+ table.time("updated_at")
+ end
+
+ create_table("xes",
+ :force => true) do |table|
+ table.time("created_at")
+ table.short_text("path")
+ table.time("updated_at")
+ end
+
+ change_table("arcs") do |table|
+ table.reference("site", "sites")
+ end
+
+ change_table("pmds") do |table|
+ table.reference("arc", "arcs")
+ end
+
+ change_table("vmds") do |table|
+ table.reference("arc", "arcs")
+ end
+
+ change_table("xes") do |table|
+ table.reference("arc", "arcs")
+ end
+ end
+end