From 82e285023e5fccb86ed625a7a80a91828e782aff Mon Sep 17 00:00:00 2001 From: Alexander Machehin Date: Tue, 22 Oct 2013 14:32:06 +0600 Subject: [PATCH] remove warning message: status machine have defined a different default for "status" --- .../20131022082357_remove_default_status_from_platform.rb | 5 +++++ ...2082416_remove_default_status_from_product_build_list.rb | 5 +++++ db/schema.rb | 6 +++--- 3 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 db/migrate/20131022082357_remove_default_status_from_platform.rb create mode 100644 db/migrate/20131022082416_remove_default_status_from_product_build_list.rb diff --git a/db/migrate/20131022082357_remove_default_status_from_platform.rb b/db/migrate/20131022082357_remove_default_status_from_platform.rb new file mode 100644 index 000000000..0fd2822ec --- /dev/null +++ b/db/migrate/20131022082357_remove_default_status_from_platform.rb @@ -0,0 +1,5 @@ +class RemoveDefaultStatusFromPlatform < ActiveRecord::Migration + def change + change_column :platforms, :status, :integer, :default => nil + end +end diff --git a/db/migrate/20131022082416_remove_default_status_from_product_build_list.rb b/db/migrate/20131022082416_remove_default_status_from_product_build_list.rb new file mode 100644 index 000000000..8846e5a2e --- /dev/null +++ b/db/migrate/20131022082416_remove_default_status_from_product_build_list.rb @@ -0,0 +1,5 @@ +class RemoveDefaultStatusFromProductBuildList < ActiveRecord::Migration + def change + change_column :product_build_lists, :status, :integer, :default => nil + end +end diff --git a/db/schema.rb b/db/schema.rb index e1f6b2ab7..22702b865 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended to check this file into your version control system. -ActiveRecord::Schema.define(:version => 20131017171426) do +ActiveRecord::Schema.define(:version => 20131022082416) do create_table "activity_feeds", :force => true do |t| t.integer "user_id", :null => false @@ -323,7 +323,7 @@ ActiveRecord::Schema.define(:version => 20131017171426) do t.string "visibility", :default => "open", :null => false t.string "platform_type", :default => "main", :null => false t.string "distrib_type", :null => false - t.integer "status", :default => 0 + t.integer "status" t.datetime "last_regenerated_at" t.integer "last_regenerated_status" t.string "last_regenerated_log_sha1" @@ -342,7 +342,7 @@ ActiveRecord::Schema.define(:version => 20131017171426) do create_table "product_build_lists", :force => true do |t| t.integer "product_id" - t.integer "status", :default => 2, :null => false + t.integer "status", :null => false t.datetime "created_at" t.datetime "updated_at" t.integer "project_id"