diff options
| author | simon <simon@zagal.(none)> | 2009-02-12 00:02:39 +0100 |
|---|---|---|
| committer | hukl <hukl@eight.local> | 2009-02-15 20:22:17 +0100 |
| commit | f10e79a554bd0666de6390c4bc34b52c8ecd936d (patch) | |
| tree | 29c19fe5cbfa8ad8d4ee08639ad9689c8268c60c /db/migrate | |
| parent | b700b1315afa9b77104cf30ca1aff0c4a33b029d (diff) | |
* removed the auditing observer, we'll do it the old fashioned way
* added permission model
* locked down attributes on page model
Diffstat (limited to 'db/migrate')
| -rw-r--r-- | db/migrate/20090211220524_create_permissions.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/db/migrate/20090211220524_create_permissions.rb b/db/migrate/20090211220524_create_permissions.rb new file mode 100644 index 0000000..2e007a4 --- /dev/null +++ b/db/migrate/20090211220524_create_permissions.rb | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | class CreatePermissions < ActiveRecord::Migration | ||
| 2 | def self.up | ||
| 3 | create_table :permissions do |t| | ||
| 4 | t.boolean :granted | ||
| 5 | t.integer :node_id | ||
| 6 | t.integer :user_id | ||
| 7 | |||
| 8 | t.timestamps | ||
| 9 | end | ||
| 10 | end | ||
| 11 | |||
| 12 | def self.down | ||
| 13 | drop_table :permissions | ||
| 14 | end | ||
| 15 | end | ||
