Redo indexes to schema_plus. Refs #112

This commit is contained in:
Pavel Chipiga 2012-01-28 04:29:33 +02:00
parent 43a4aecc66
commit a1d7ee10e9
3 changed files with 23 additions and 33 deletions

View File

@ -4,7 +4,7 @@ gem 'rails', '3.0.11' #, :git => 'git://github.com/rails/rails.git'
gem 'pg', '~> 0.11.0' gem 'pg', '~> 0.11.0'
gem 'silent-postgres', '~> 0.1.1' gem 'silent-postgres', '~> 0.1.1'
gem 'redhillonrails_core', '~> 1.2.0' gem 'schema_plus', '~> 0.2.1'
gem 'devise', '~> 1.5.2' gem 'devise', '~> 1.5.2'
gem 'omniauth', '~> 1.0.1' gem 'omniauth', '~> 1.0.1'

View File

@ -160,8 +160,6 @@ GEM
rbx-require-relative (0.0.5) rbx-require-relative (0.0.5)
rdoc (3.11) rdoc (3.11)
json (~> 1.4) json (~> 1.4)
redhillonrails_core (1.2.0)
activerecord (>= 2)
rr (1.0.4) rr (1.0.4)
rspec (2.7.0) rspec (2.7.0)
rspec-core (~> 2.7.0) rspec-core (~> 2.7.0)
@ -186,6 +184,9 @@ GEM
sexp_processor (~> 3.0) sexp_processor (~> 3.0)
russian (0.6.0) russian (0.6.0)
i18n (>= 0.5.0) i18n (>= 0.5.0)
schema_plus (0.2.1)
rails
valuable
sexp_processor (3.0.8) sexp_processor (3.0.8)
silent-postgres (0.1.1) silent-postgres (0.1.1)
state_machine (0.9.4) state_machine (0.9.4)
@ -198,6 +199,7 @@ GEM
kgio (~> 2.4) kgio (~> 2.4)
rack rack
raindrops (~> 0.6) raindrops (~> 0.6)
valuable (0.9.2)
warden (1.1.0) warden (1.1.0)
rack (>= 1.0) rack (>= 1.0)
web-app-theme (0.7.0) web-app-theme (0.7.0)
@ -240,12 +242,12 @@ DEPENDENCIES
rails-xmlrpc (~> 0.3.6) rails-xmlrpc (~> 0.3.6)
rails3-generators rails3-generators
rails3-jquery-autocomplete rails3-jquery-autocomplete
redhillonrails_core (~> 1.2.0)
rr rr
rspec-rails (~> 2.7.0) rspec-rails (~> 2.7.0)
ruby-debug ruby-debug
ruby_parser ruby_parser
russian russian
schema_plus (~> 0.2.1)
silent-postgres (~> 0.1.1) silent-postgres (~> 0.1.1)
unicorn (~> 4.1.1) unicorn (~> 4.1.1)
web-app-theme web-app-theme

View File

@ -16,21 +16,19 @@ ActiveRecord::Schema.define(:version => 20120127234602) do
t.string "name", :null => false t.string "name", :null => false
t.datetime "created_at" t.datetime "created_at"
t.datetime "updated_at" t.datetime "updated_at"
t.index ["name"], :name => "index_arches_on_name", :unique => true
end end
add_index "arches", ["name"], :name => "index_arches_on_name", :unique => true
create_table "authentications", :force => true do |t| create_table "authentications", :force => true do |t|
t.integer "user_id" t.integer "user_id"
t.string "provider" t.string "provider"
t.string "uid" t.string "uid"
t.datetime "created_at" t.datetime "created_at"
t.datetime "updated_at" t.datetime "updated_at"
t.index ["provider", "uid"], :name => "index_authentications_on_provider_and_uid", :unique => true
t.index ["user_id"], :name => "index_authentications_on_user_id"
end end
add_index "authentications", ["provider", "uid"], :name => "index_authentications_on_provider_and_uid", :unique => true
add_index "authentications", ["user_id"], :name => "index_authentications_on_user_id"
create_table "auto_build_lists", :force => true do |t| create_table "auto_build_lists", :force => true do |t|
t.integer "project_id" t.integer "project_id"
t.integer "arch_id" t.integer "arch_id"
@ -48,10 +46,9 @@ ActiveRecord::Schema.define(:version => 20120127234602) do
t.datetime "created_at" t.datetime "created_at"
t.datetime "updated_at" t.datetime "updated_at"
t.string "version" t.string "version"
t.index ["build_list_id"], :name => "index_build_list_items_on_build_list_id"
end end
add_index "build_list_items", ["build_list_id"], :name => "index_build_list_items_on_build_list_id"
create_table "build_lists", :force => true do |t| create_table "build_lists", :force => true do |t|
t.integer "bs_id" t.integer "bs_id"
t.string "container_path" t.string "container_path"
@ -74,12 +71,11 @@ ActiveRecord::Schema.define(:version => 20120127234602) do
t.boolean "auto_publish", :default => true t.boolean "auto_publish", :default => true
t.string "package_version" t.string "package_version"
t.string "commit_hash" t.string "commit_hash"
t.index ["arch_id"], :name => "index_build_lists_on_arch_id"
t.index ["bs_id"], :name => "index_build_lists_on_bs_id", :unique => true
t.index ["project_id"], :name => "index_build_lists_on_project_id"
end end
add_index "build_lists", ["arch_id"], :name => "index_build_lists_on_arch_id"
add_index "build_lists", ["bs_id"], :name => "index_build_lists_on_bs_id", :unique => true
add_index "build_lists", ["project_id"], :name => "index_build_lists_on_project_id"
create_table "categories", :force => true do |t| create_table "categories", :force => true do |t|
t.string "name" t.string "name"
t.string "ancestry" t.string "ancestry"
@ -116,10 +112,9 @@ ActiveRecord::Schema.define(:version => 20120127234602) do
t.string "locked_by" t.string "locked_by"
t.datetime "created_at" t.datetime "created_at"
t.datetime "updated_at" t.datetime "updated_at"
t.index ["priority", "run_at"], :name => "delayed_jobs_priority"
end end
add_index "delayed_jobs", ["priority", "run_at"], :name => "delayed_jobs_priority"
create_table "downloads", :force => true do |t| create_table "downloads", :force => true do |t|
t.string "name", :null => false t.string "name", :null => false
t.string "version" t.string "version"
@ -163,10 +158,9 @@ ActiveRecord::Schema.define(:version => 20120127234602) do
t.string "status", :default => "open" t.string "status", :default => "open"
t.datetime "created_at" t.datetime "created_at"
t.datetime "updated_at" t.datetime "updated_at"
t.index ["project_id", "serial_id"], :name => "index_issues_on_project_id_and_serial_id", :unique => true
end end
add_index "issues", ["project_id", "serial_id"], :name => "index_issues_on_project_id_and_serial_id", :unique => true
create_table "platforms", :force => true do |t| create_table "platforms", :force => true do |t|
t.string "description" t.string "description"
t.string "name" t.string "name"
@ -196,10 +190,9 @@ ActiveRecord::Schema.define(:version => 20120127234602) do
t.datetime "notified_at" t.datetime "notified_at"
t.datetime "created_at" t.datetime "created_at"
t.datetime "updated_at" t.datetime "updated_at"
t.index ["product_id"], :name => "index_product_build_lists_on_product_id"
end end
add_index "product_build_lists", ["product_id"], :name => "index_product_build_lists_on_product_id"
create_table "products", :force => true do |t| create_table "products", :force => true do |t|
t.string "name", :null => false t.string "name", :null => false
t.integer "platform_id", :null => false t.integer "platform_id", :null => false
@ -230,8 +223,6 @@ ActiveRecord::Schema.define(:version => 20120127234602) do
t.datetime "updated_at" t.datetime "updated_at"
end end
add_index "project_imports", ["name"], :name => "index_project_imports_on_name", :unique => true, :case_sensitive => false
create_table "project_to_repositories", :force => true do |t| create_table "project_to_repositories", :force => true do |t|
t.integer "project_id" t.integer "project_id"
t.integer "repository_id" t.integer "repository_id"
@ -254,11 +245,10 @@ ActiveRecord::Schema.define(:version => 20120127234602) do
t.datetime "srpm_updated_at" t.datetime "srpm_updated_at"
t.integer "srpm_file_size" t.integer "srpm_file_size"
t.string "srpm_file_name" t.string "srpm_file_name"
t.index ["category_id"], :name => "index_projects_on_category_id"
t.index ["owner_id"], :name => "index_projects_on_name_and_owner_id_and_owner_type", :unique => true
end end
add_index "projects", ["category_id"], :name => "index_projects_on_category_id"
add_index "projects", ["owner_id"], :name => "index_projects_on_name_and_owner_id_and_owner_type", :unique => true, :case_sensitive => false
create_table "relations", :force => true do |t| create_table "relations", :force => true do |t|
t.integer "object_id" t.integer "object_id"
t.string "object_type" t.string "object_type"
@ -285,11 +275,10 @@ ActiveRecord::Schema.define(:version => 20120127234602) do
t.integer "project_id", :null => false t.integer "project_id", :null => false
t.datetime "created_at" t.datetime "created_at"
t.datetime "updated_at" t.datetime "updated_at"
t.index ["project_id"], :name => "index_rpms_on_project_id"
t.index ["project_id", "arch_id"], :name => "index_rpms_on_project_id_and_arch_id"
end 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 "settings_notifiers", :force => true do |t| create_table "settings_notifiers", :force => true do |t|
t.integer "user_id", :null => false t.integer "user_id", :null => false
t.boolean "can_notify", :default => true t.boolean "can_notify", :default => true
@ -323,10 +312,9 @@ ActiveRecord::Schema.define(:version => 20120127234602) do
t.string "uname" t.string "uname"
t.string "role" t.string "role"
t.string "language", :default => "en" t.string "language", :default => "en"
t.index ["email"], :name => "index_users_on_email", :unique => true
t.index ["reset_password_token"], :name => "index_users_on_reset_password_token", :unique => true
t.index ["uname"], :name => "index_users_on_uname", :unique => true
end end
add_index "users", ["email"], :name => "index_users_on_email", :unique => true
add_index "users", ["reset_password_token"], :name => "index_users_on_reset_password_token", :unique => true
add_index "users", ["uname"], :name => "index_users_on_uname", :unique => true
end end