authentasaurus 0.5.8 → 0.5.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,7 +9,7 @@ module Authentasaurus::Models::Permission
9
9
  base.send :belongs_to, :area
10
10
 
11
11
  # Check that everything is there
12
- base.send :validates_presence_of, :group_id,:area_id,:read,:write
12
+ base.send :validates_presence_of, :group_id, :area_id
13
13
  # Check foreign keys
14
14
  base.send :validates_associated, :group, :area
15
15
  end
@@ -59,8 +59,8 @@ module Helpers::Migrations
59
59
  create_table :permissions do |t|
60
60
  t.integer :group_id, :null => false
61
61
  t.integer :area_id, :null => false
62
- t.boolean :read, :null => false
63
- t.boolean :write, :null => false
62
+ t.boolean :read, :null => false, :default => false
63
+ t.boolean :write, :null => false, :default => false
64
64
 
65
65
  t.timestamps
66
66
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: authentasaurus
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 8
10
- version: 0.5.8
9
+ - 9
10
+ version: 0.5.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - Omar Mekky