wnw_permissible 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8469cd2270279f4c5dfd0100a0919e97b9854a53877746ec6dbba32123dea6d7
4
- data.tar.gz: 57708e2933882a7b147b6a4902573c5c489359f496a9ab299ac666cb3af87f8d
3
+ metadata.gz: 7e05ebd4b32590ebdf62c77229c60dd54a80ce09021299ebad384c05a5ada914
4
+ data.tar.gz: 16b4df7958b135aec6c5b06bcdcee760dad906b8cdb6f38982f23a8d393fb2fd
5
5
  SHA512:
6
- metadata.gz: cc72a03eaa4b73c7888392ebbfb1b43a8401719a7b773e35a113d3e50ba85a103a8385cfee8e91818c74de118a161ac7bd21f72fc9171bfe60e7b9fd8d28ce25
7
- data.tar.gz: 67ed2d6dc6c8f3757563f5839d2dcac25fa1c2774b3a7c288c92d67ad4d011e4810d9b797f6156ab139763be310619e43f8f43072624d16a007241a59641641b
6
+ metadata.gz: a42fcc8400e19097a975ea6eece078036ca86f5dca24eef605db663cdb68fe3cbfe0964a032af3cfadfd70256cb14918156726aa0a72318a2254e4e9f2399718
7
+ data.tar.gz: dced9dccab6f4e4b898ed0e057542f54543f5d62c94207c1b0acda2f4a3610f55149be9260908254fcc53aa89c1ed02da6bf46fe9217589722548a0ee4817d0b
@@ -2,12 +2,14 @@ class CreateAuthorizations < ActiveRecord::Migration<%= migration_version %>
2
2
 
3
3
  def change
4
4
  create_table :authorizations do |t|
5
- t.references :authorizable, :polymorphic => true
5
+ t.string :authorizable_type, :limit => 191
6
+ t.integer :authorizable_id
6
7
  t.references :role, :foreign_key => true
7
8
 
8
9
  t.timestamps
9
10
  end
10
11
 
12
+ add_index :authorizations, [:authorizable_type, :authorizable_id]
11
13
  add_index :authorizations, [:authorizable_id, :authorizable_type]
12
14
  end
13
15
 
@@ -2,7 +2,7 @@ class CreatePermissions < ActiveRecord::Migration<%= migration_version %>
2
2
 
3
3
  def change
4
4
  create_table :permissions do |t|
5
- t.string :name
5
+ t.string :name, :limit => 191
6
6
  t.text :description
7
7
 
8
8
  t.timestamps
@@ -2,7 +2,7 @@ class CreateRoles < ActiveRecord::Migration<%= migration_version %>
2
2
 
3
3
  def change
4
4
  create_table :roles do |t|
5
- t.string :name
5
+ t.string :name, :limit => 191
6
6
  t.text :description
7
7
 
8
8
  t.timestamps
@@ -1,3 +1,3 @@
1
1
  module WnwPermissible
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wnw_permissible
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rob Cameron