[refs #461] Fix is_package locale. Fix schema.rb and rename migration

This commit is contained in:
konstantin.grabar 2012-05-16 14:31:20 +04:00
parent 1f088c0cfc
commit 79a9b3d107
4 changed files with 6 additions and 4 deletions

View File

@ -87,4 +87,4 @@ en:
me: Myself me: Myself
group: Group group: Group
default_branch: Default branch default_branch: Default branch
is_rpm: Project is a packet is_package: Project is a packet

View File

@ -87,4 +87,4 @@ ru:
me: Я me: Я
group: Группа group: Группа
default_branch: Ветка по умолчанию default_branch: Ветка по умолчанию
is_rpm: Проект является пакетом is_package: Проект является пакетом

View File

@ -1,9 +1,11 @@
class RenameIsRpmToIsPackageInProjects < ActiveRecord::Migration class RenameIsRpmToIsPackageInProjects < ActiveRecord::Migration
def up def up
rename_column :projects, :is_rpm, :is_package rename_column :projects, :is_rpm, :is_package
change_column :projects, :is_package, :boolean, :default => true, :null => false
end end
def down def down
rename_column :projects, :is_package, :is_rpm rename_column :projects, :is_package, :is_rpm
change_column :projects, :is_package, :boolean, :default => true
end end
end end

View File

@ -205,7 +205,7 @@ ActiveRecord::Schema.define(:version => 20120515095324) do
t.string "owner_type" t.string "owner_type"
t.string "visibility", :default => "open", :null => false t.string "visibility", :default => "open", :null => false
t.string "platform_type", :default => "main", :null => false t.string "platform_type", :default => "main", :null => false
t.string "distrib_type" t.string "distrib_type", :null => false
end end
add_index "platforms", ["name"], :name => "index_platforms_on_name", :unique => true, :case_sensitive => false add_index "platforms", ["name"], :name => "index_platforms_on_name", :unique => true, :case_sensitive => false
@ -282,7 +282,7 @@ ActiveRecord::Schema.define(:version => 20120515095324) do
t.integer "srpm_file_size" t.integer "srpm_file_size"
t.datetime "srpm_updated_at" t.datetime "srpm_updated_at"
t.string "default_branch", :default => "master" t.string "default_branch", :default => "master"
t.boolean "is_package", :default => true t.boolean "is_package", :default => true, :null => false
t.integer "average_build_time", :default => 0, :null => false t.integer "average_build_time", :default => 0, :null => false
t.integer "build_count", :default => 0, :null => false t.integer "build_count", :default => 0, :null => false
end end