Arch, container and rpm models
This commit is contained in:
parent
7896c4e7d3
commit
c1ff6dcc05
21
db/schema.rb
21
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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue