diff --git a/db/schema.rb b/db/schema.rb index 6961dd2c8..85cdd3353 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,15 @@ # # It's strongly recommended to check this file into your version control system. -ActiveRecord::Schema.define(:version => 20110312133121) do +ActiveRecord::Schema.define(:version => 20110312133948) do + + create_table "arches", :force => true do |t| + t.string "name", :null => false + t.datetime "created_at" + t.datetime "updated_at" + end + + add_index "arches", ["name"], :name => "index_arches_on_name", :unique => true create_table "containers", :force => true do |t| t.string "name", :null => false @@ -44,6 +52,17 @@ ActiveRecord::Schema.define(:version => 20110312133121) do t.string "unixname", :null => false end + create_table "rpms", :force => true do |t| + t.string "name", :null => false + t.integer "arch_id", :null => false + t.integer "project_id", :null => false + t.datetime "created_at" + t.datetime "updated_at" + end + + add_index "rpms", ["project_id", "arch_id"], :name => "index_rpms_on_project_id_and_arch_id" + add_index "rpms", ["project_id"], :name => "index_rpms_on_project_id" + create_table "users", :force => true do |t| t.string "name" t.string "email", :default => "", :null => false diff --git a/db/seeds.rb b/db/seeds.rb index c9f4bd74f..d250f8187 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -17,6 +17,7 @@ TEST_USERS.each do |tuser| end +=begin TEST_PLATFORMS = %w(cooker Mandriva2010-10 Mandriva2011.4) TEST_PROJECTS = %w(gcc glibc mysql-dev ruby ruby1.9 mc mesa avrdude vim gvim openssh-server openssh nethack binutils build-essentials rpm rpmtools ffmpeg mkvtoolnix libogg mpg123 openbox openoffice.org) @@ -30,3 +31,9 @@ TEST_PLATFORMS.each do |platform| pr.save! end end +=end + +ARCHES = %w(i586 i686 x86_64 mips powerpc) +ARCHES.each do |arch| + Arch.find_or_create_by_name arch +end