summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorhukl <contact@smyck.org>2009-03-21 17:39:11 +0100
committerhukl <contact@smyck.org>2009-03-21 17:39:11 +0100
commit0e215fab6ef01cfe4865ed10bbe083f800c9a73e (patch)
tree12b49dc4f5d12d5786f247c581624785bf90d38f /db
parent40bdc8384a33019c1771fbad888525505f61aa7c (diff)
put the lock onto nodes
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20090321150359_add_locking_user_id_to_nodes.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20090321150359_add_locking_user_id_to_nodes.rb b/db/migrate/20090321150359_add_locking_user_id_to_nodes.rb
new file mode 100644
index 0000000..b40dd71
--- /dev/null
+++ b/db/migrate/20090321150359_add_locking_user_id_to_nodes.rb
@@ -0,0 +1,9 @@
1class AddLockingUserIdToNodes < ActiveRecord::Migration
2 def self.up
3 add_column :nodes, :locking_user_id, :integer
4 end
5
6 def self.down
7 remove_column :nodes, :locking_user_id
8 end
9end