From 1d54fa01ec6e01821b304e320ab084b465280104 Mon Sep 17 00:00:00 2001 From: Vokhmin Alexey V Date: Tue, 14 Jan 2014 01:54:09 +0400 Subject: [PATCH] #339: added #architecture_dependent to Project --- .../20140113215223_add_architecture_dependent_to_project.rb | 5 +++++ db/schema.rb | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20140113215223_add_architecture_dependent_to_project.rb diff --git a/db/migrate/20140113215223_add_architecture_dependent_to_project.rb b/db/migrate/20140113215223_add_architecture_dependent_to_project.rb new file mode 100644 index 000000000..b1fd34e95 --- /dev/null +++ b/db/migrate/20140113215223_add_architecture_dependent_to_project.rb @@ -0,0 +1,5 @@ +class AddArchitectureDependentToProject < ActiveRecord::Migration + def change + add_column :projects, :architecture_dependent, :boolean, :default => false, :null => false + end +end diff --git a/db/schema.rb b/db/schema.rb index aa7a3851b..eee0323ca 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 => 20140113205657) do +ActiveRecord::Schema.define(:version => 20140113215223) do create_table "activity_feeds", :force => true do |t| t.integer "user_id", :null => false @@ -439,6 +439,7 @@ ActiveRecord::Schema.define(:version => 20140113205657) do t.integer "maintainer_id" t.boolean "publish_i686_into_x86_64", :default => false t.string "owner_uname", :null => false + t.boolean "architecture_dependent", :default => false, :null => false end add_index "projects", ["owner_id", "name", "owner_type"], :name => "index_projects_on_name_and_owner_id_and_owner_type", :unique => true, :case_sensitive => false