summaryrefslogtreecommitdiff
path: root/db/fixtures
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-11-29 07:29:11 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-11-29 12:39:03 +0200
commiteb1004f7890d25a86beb0ca0a7eca802d9fce665 (patch)
tree94cb713c0628542e646aad323be4d88fb1c356e3 /db/fixtures
parenta1ffc673b95f4d0e2316d461f1364fa1ee08e9d2 (diff)
downloadgitlab-ce-eb1004f7890d25a86beb0ca0a7eca802d9fce665.tar.gz
Refactor abilities. Added ProjectUpdate context. Fixed few bugs with namespaces
Diffstat (limited to 'db/fixtures')
-rw-r--r--db/fixtures/development/010_groups.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/db/fixtures/development/010_groups.rb b/db/fixtures/development/010_groups.rb
new file mode 100644
index 00000000000..09371b00751
--- /dev/null
+++ b/db/fixtures/development/010_groups.rb
@@ -0,0 +1,11 @@
+Group.seed(:id, [
+ { id: 100, name: "Gitlab", path: 'gitlab', owner_id: 1},
+ { id: 101, name: "Rails", path: 'rails', owner_id: 1 },
+ { id: 102, name: "KDE", path: 'kde', owner_id: 1 }
+])
+
+Project.seed(:id, [
+ { id: 10, name: "kdebase", path: "kdebase", owner_id: 1, namespace_id: 102 },
+ { id: 11, name: "kdelibs", path: "kdelibs", owner_id: 1, namespace_id: 102 },
+ { id: 12, name: "amarok", path: "amarok", owner_id: 1, namespace_id: 102 }
+])