diff options
author | Steven Thonus <steven@ln2.nl> | 2013-11-29 20:10:59 +0400 |
---|---|---|
committer | Steven Thonus <steven@ln2.nl> | 2013-12-16 17:39:14 +0400 |
commit | 37383966ef3fada865d3d21a8ce7a3c640bbd11e (patch) | |
tree | c7fe9015cd5d3b336e868498bb478fd523de0a86 /db | |
parent | 99490159e5f9d6ff4b45f78b977d01caa1e3c4fc (diff) |
Archiving old projects; archived projects aren't shown on dashboard
features for archive projects
abilities for archived project
other abilities for archive projects
only limit commits and merges for archived projects
ability changed to prohibited actions on archived projects
added spec and feature tests for archive projects
changed search bar not to include archived projects
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20131129154016_add_archived_to_projects.rb | 5 | ||||
-rw-r--r-- | db/schema.rb | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/db/migrate/20131129154016_add_archived_to_projects.rb b/db/migrate/20131129154016_add_archived_to_projects.rb new file mode 100644 index 00000000000..917e690ba47 --- /dev/null +++ b/db/migrate/20131129154016_add_archived_to_projects.rb @@ -0,0 +1,5 @@ +class AddArchivedToProjects < ActiveRecord::Migration + def change + add_column :projects, :archived, :boolean, default: false, null: false + end +end diff --git a/db/schema.rb b/db/schema.rb index e7b3bf09d2d..77d245913e2 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -192,6 +192,7 @@ ActiveRecord::Schema.define(version: 20131214224427) do t.boolean "imported", default: false, null: false t.string "import_url" t.integer "visibility_level", default: 0, null: false + t.boolean "archived", default: false, null: false end add_index "projects", ["creator_id"], name: "index_projects_on_owner_id", using: :btree |