faalis 1.0.0.alpha3 → 1.0.0.alpha4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -4
  3. data/app/assets/javascripts/faalis/angular-manifest.js +1 -1
  4. data/app/assets/javascripts/faalis/dashboard/app.js +4 -4
  5. data/app/assets/javascripts/faalis/dashboard/controllers/group.js.coffee +1 -0
  6. data/app/assets/javascripts/faalis/dashboard/lib/api_result.js.coffee +5 -0
  7. data/app/assets/javascripts/faalis/dashboard/lib/fields/base.js.coffee +2 -0
  8. data/app/assets/javascripts/faalis/dashboard/lib/fields/has_many_field.js.coffee +27 -1
  9. data/app/assets/javascripts/faalis/dashboard/lib/resource.js.coffee +25 -2
  10. data/app/assets/javascripts/faalis/dashboard/modules/fields/#image.js# +3 -3
  11. data/app/assets/javascripts/faalis/dashboard/modules/fields/datetime.js +1 -3
  12. data/app/assets/javascripts/faalis/dashboard/resources/group_resource.js.coffee +3 -1
  13. data/app/assets/javascripts/faalis/dashboard/resources/permission_resource.js.coffee +4 -1
  14. data/app/assets/stylesheets/faalis/dashboard/ltr/application.css +9 -0
  15. data/app/assets/stylesheets/faalis/dashboard/rtl/application.css +2 -0
  16. data/app/controllers/faalis/dashboard_controller.rb +1 -0
  17. data/lib/faalis/fake_assets.rb +1 -0
  18. data/lib/faalis/version.rb +1 -1
  19. data/spec/dummy/db/development.sqlite3 +0 -0
  20. data/spec/dummy/db/migrate/{20150120211313_create_application_models.model_discovery_engine.rb → 20150121060012_create_application_models.model_discovery_engine.rb} +0 -0
  21. data/spec/dummy/db/schema.rb +1 -1
  22. data/spec/dummy/db/test.sqlite3 +0 -0
  23. data/spec/dummy/log/development.log +366 -783
  24. data/spec/dummy/log/test.log +11486 -3431
  25. metadata +84 -59
  26. data/app/assets/javascripts/faalis/dashboard/templates/application.handlebars.erb +0 -42
  27. data/app/assets/javascripts/faalis/dashboard/templates/auth/groups/details.handlebars.erb +0 -15
  28. data/app/assets/javascripts/faalis/dashboard/templates/auth/groups/index.handlebars.erb +0 -7
  29. data/app/assets/javascripts/faalis/dashboard/templates/auth/groups/new.handlebars.erb +0 -39
  30. data/app/assets/javascripts/faalis/dashboard/templates/auth/index.handlebars.erb +0 -31
  31. data/app/assets/javascripts/faalis/dashboard/templates/auth/users/details.handlebars.erb +0 -15
  32. data/app/assets/javascripts/faalis/dashboard/templates/auth/users/index.handlebars.erb +0 -11
  33. data/app/assets/javascripts/faalis/dashboard/templates/auth/users/new.handlebars.erb +0 -33
  34. data/app/assets/javascripts/faalis/dashboard/templates/components/list-view.handlebars.erb +0 -59
  35. data/app/assets/javascripts/faalis/dashboard/templates/components/model-form.handlebars.erb +0 -3
  36. data/app/assets/javascripts/faalis/dashboard/templates/modules.handlebars.erb +0 -15
  37. data/app/assets/javascripts/faalis/dashboard/templates/navigation.handlebars.erb +0 -43
  38. data/app/assets/javascripts/faalis/dashboard/templates/widgets.handlebars +0 -23
  39. data/app/controllers/faalis/#dashboard_controller.rb# +0 -65
  40. data/lib/faalis/generators/fields/#relation.rb# +0 -61
  41. data/spec/dummy/db/seeds.rb +0 -1
  42. data/spec/dummy/db/seeds.rb~ +0 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 31a0171c1951bdcf303ed9b57a4351372dad59dc
4
- data.tar.gz: 15d54b03ce8a9932981255c151a05bf7cf1fc26b
3
+ metadata.gz: 4142c1bbc7a9acf734840f8549f57bcbd1423197
4
+ data.tar.gz: 6bdc7be8afae5e8db1684a8e2034379f4528a3df
5
5
  SHA512:
6
- metadata.gz: ee00dd823392e05f622bacd28fcd411edb73ac04f7c8ea44e2833c5f604a16488d53d62002f32e64ab1e7d4106702af48c5a07442f7af5836c3ca37043089051
7
- data.tar.gz: f98f6194e711b3891847d50a4dde8b36b1c6c7128d212e4a3f1e02dc83b8ad8bbe46897e09d9e7bac132a56c0356362e87128fd5dfd2e8373d1b7803e74e7439
6
+ metadata.gz: 86bafa8c2f59fd59482bcbd6d92d69bdb5ff07346e3010c65817849a111976a4de6465331fc95e0ecafe40f9c76e4c0275328cf0ad942687cdf0a9164e943f37
7
+ data.tar.gz: a1e0aa9ebed472d454a21949bb712054f4744afc9b5c0248266eca7f37d4b9fd0a3ca499319a0294bade56b6738d415536febc0b89feff63ab414b74f504bfbd
data/README.md CHANGED
@@ -57,14 +57,13 @@ For example (only if you want to change default layout):
57
57
  ```
58
58
 
59
59
  * Perform `rails generate faalis:install_all` to copy necessary files.
60
- * Add this to your `config/routes.rb` :
60
+ * Add this to your `config/application.rb` :
61
61
 
62
62
  ```ruby
63
- mount Faalis::Engine => "/"
64
- Faalis::Routes.define_api_routes
63
+ config.railties_order = [:main_app, Dashstrap::TemplateEngine, Faalis::Engine, :all]
65
64
  ```
66
65
 
67
- * Perform `rake db:migrate` and enjoy Faalis
66
+ * Perform `rake db:migrate db:seed` and enjoy Faalis
68
67
 
69
68
  > **NOTE**: You can specify the ORM you'd like to use in `config/initializers/faalis.rb`
70
69
 
@@ -15,7 +15,7 @@
15
15
  //= require ngQuickDate/ng-quick-date
16
16
  //= require select2/select2
17
17
  //= require angular-ui-select2/select2
18
- //= require flow
18
+ //= require flow.js/flow
19
19
  //= require ng-flow
20
20
  //= require faalis/dashboard/functions
21
21
  //= require_tree ./dashboard/lib
@@ -23,12 +23,12 @@ Dashboard.config(["$stateProvider","$urlRouterProvider", "RestangularProvider",
23
23
  }).state("home", {
24
24
  url: "/",
25
25
  templateUrl: template_url("index")
26
- }).state("not_find", {
27
- url: "/403",
28
- templateUrl: template_url("403")
29
- }).state("permission_denied", {
26
+ }).state("not_found", {
30
27
  url: "/404",
31
28
  templateUrl: template_url("404")
29
+ }).state("permission_denied", {
30
+ url: "/403",
31
+ templateUrl: template_url("403")
32
32
  });
33
33
 
34
34
  $urlRouterProvider.otherwise('/404');
@@ -39,4 +39,5 @@ Group.controller "NewGroupController", ["$state", "$rootScope", "$scope", "Resou
39
39
 
40
40
  resource.initialize($stateParams)
41
41
 
42
+ $scope.relations = resource.get_all_relations()
42
43
  ]
@@ -0,0 +1,5 @@
1
+ # This class is responsible to represent the api result data
2
+ # in a suitable fasion
3
+ class Faalis.APIResult
4
+ constructor: (@resource, @data) ->
5
+ return
@@ -1,5 +1,7 @@
1
1
  # Base of all **Faalis** fields
2
2
  class Faalis.BaseField
3
+ relation: false
4
+
3
5
  constructor: (@name) ->
4
6
 
5
7
  __init__: [ ->
@@ -1,4 +1,30 @@
1
1
  class Faalis.HasManyField extends Faalis.BaseField
2
2
  type: 'has_many'
3
+ relation: true
3
4
 
4
- constructor: (@name, @to) ->
5
+ # **Name**: The name of current field.
6
+ # **object**: Target resource object
7
+ constructor: (name, resource) ->
8
+ @name = name
9
+ @resource = resource
10
+ console.log(resource)
11
+
12
+ __init__: ->
13
+ console.log("<<<<<<<<<<<<<<<<")
14
+ console.log(this)
15
+ #console.log(@resource)
16
+ return
17
+ @resource = new @resource()
18
+
19
+ unless @resource.__init__?
20
+ throw "'" + @to + "' does not have '__init__' method."
21
+
22
+ Faalis.$injector.invoke(@resource.__init__, @resource)
23
+
24
+
25
+ # Fetch all the possible objects for current relation.
26
+ # for example if @object was Post resource, then it will
27
+ # fetch all the post from API
28
+ fetch_all_objects: ->
29
+ # --- This method should run after injection ---
30
+ return @object.all()
@@ -2,6 +2,12 @@
2
2
  # and is responsible for representing a remote resource.
3
3
  class Faalis.Resource
4
4
 
5
+ # This array hold all the fields which represent a relationship
6
+ # for current resource.
7
+ #
8
+ # for example `belongs_to` or `has_many` relationship
9
+ __relations__: []
10
+
5
11
  # Arguments list:
6
12
  # * **options**: Extra properties and attributes to add to the resource.
7
13
  # All the key/value in this object will attached to the
@@ -23,7 +29,7 @@ class Faalis.Resource
23
29
  api_prefix = this._api_prefix || '/api/v1/'
24
30
  @API = new Faalis.APIFactory(this, type, api_prefix)
25
31
 
26
- @initialize.$inject = ['$http', '$log', 'catch_error']
32
+ @__init__.$inject = ['$http', '$log', 'catch_error']
27
33
 
28
34
  # Set the specific parents of current resource. This method should be called
29
35
  # in controllers and before any use of `Resource` object. and the **parents**
@@ -46,7 +52,6 @@ class Faalis.Resource
46
52
  __init__: ($http, $log, catch_error) ->
47
53
 
48
54
  deps = window.STATIC_REQUIREMENTS.concat(window.dashboard_dependencies)
49
- $injector = angular.injector(['ng', 'Errors', 'gettext'])
50
55
 
51
56
  Faalis.$injector.invoke(@API.__init__, @API)
52
57
 
@@ -54,6 +59,9 @@ class Faalis.Resource
54
59
  unless attr.__init__?
55
60
  throw "'" + attr + "' does not have '__init__' method."
56
61
 
62
+ if attr.relation
63
+ @__relations__.push(attr)
64
+
57
65
  # inject services for field classes.
58
66
  Faalis.$injector.invoke(attr.__init__, attr)
59
67
 
@@ -145,3 +153,18 @@ class Faalis.Resource
145
153
  # Destroy the resource with given id
146
154
  destroy: (id) ->
147
155
  return @API.destroy(id)
156
+
157
+ # Get All possible objects for current resource relations
158
+ get_all_relations: ->
159
+ # --- This method should run after injection ---
160
+ result_obj = {}
161
+
162
+ for relation in @__relations__
163
+ # relation would be a Field (or its children) Instance and
164
+ # relation.resource would be a Resource instance.
165
+ relation.fetch_all_objects().then( (result) ->
166
+ # Put the result promise in the result object
167
+ result_obj[relation.name] = result
168
+ )
169
+
170
+ return result_obj
@@ -12,16 +12,16 @@ Image_.directive('imageField',["gettext", "$parse", function(gettext, $parse){
12
12
 
13
13
  function updateModel(event){
14
14
  if(event.target && event.target.files){
15
- var file = event.target.files[0];j
15
+ var file = event.target.files[0];
16
16
  var reader = new FileReader();
17
17
  reader.onload = function(e){
18
18
  var image = e.target.result;
19
19
  console.log("IMAGE DATA: %s", image);
20
20
  ngctrl.$setViewValue({filename: file.name,
21
- data: image,
21
+ image_data: image,
22
22
  content_type: file.type});
23
23
  ngctrl.$render();
24
-
24
+
25
25
  };
26
26
  reader.readAsDataURL(file);
27
27
  }
@@ -32,8 +32,6 @@ Datetime_.directive('datetimeField', ["$filter", "gettext", function($filter, g
32
32
  });
33
33
 
34
34
  scope.$watch('fake_model', function(x, y) {
35
- console.log('---------------');
36
- console.log("%s -- %s", x , y);
37
35
  });
38
36
  }
39
37
  // Actual object of <datetime-field> directive
@@ -44,7 +42,7 @@ Datetime_.directive('datetimeField', ["$filter", "gettext", function($filter, g
44
42
  transclude: true,
45
43
  scope: {
46
44
  // disable timepicker
47
- timepicker: "=?",
45
+ time: "=?",
48
46
 
49
47
  cssClasses: '=cssClass',
50
48
  // A call back to pass to field ng-change directive
@@ -1,4 +1,4 @@
1
- class Faalis.GroupResource extends Faalis.Resource
1
+ class @GroupResource extends Faalis.Resource
2
2
 
3
3
  __name__: 'group'
4
4
 
@@ -6,3 +6,5 @@ class Faalis.GroupResource extends Faalis.Resource
6
6
  new Faalis.StringField('title'),
7
7
  new Faalis.HasManyField('permissions', Faalis.PermissionResource)
8
8
  ]
9
+
10
+ Faalis.GroupResource = @GroupResource
@@ -1,6 +1,9 @@
1
- class Faalis.PermissionResource extends Faalis.Resource
1
+ class @PermissionResource extends Faalis.Resource
2
2
  __name__: 'permission'
3
3
 
4
4
  __attributes__: [
5
5
  new Faalis.StringField('title'),
6
6
  ]
7
+
8
+
9
+ Faalis.PermissionResrouce = @PermissionResource
@@ -0,0 +1,9 @@
1
+ // require variables
2
+ // require bootstrap
3
+ // require font-awesome
4
+ // require AdminLTE
5
+ // require base
6
+ // require home
7
+
8
+ //= require dashstrap/dashboard/ltr/application
9
+ //= require dashstrap/ltr/application
@@ -0,0 +1,2 @@
1
+ //= require dashstrap/dashboard/rtl/application
2
+ //= require dashstrap/rtl/application
@@ -13,6 +13,7 @@ module Faalis
13
13
 
14
14
  def jstemplate
15
15
  if user_signed_in?
16
+ logger.info "#{'JS_TEMPLATE'.yellow}: angular/#{params[:path]}"
16
17
  render template: "angular/#{params[:path]}", layout: nil
17
18
  else
18
19
  render :login_required_page
@@ -4,6 +4,7 @@ require 'rails-assets-restangular'
4
4
  require 'rails-assets-ngQuickDate'
5
5
  require 'rails-assets-select2'
6
6
  require 'rails-assets-angular-ui-select2'
7
+ require 'rails-assets-flow.js'
7
8
  require 'rails-assets-ng-flow'
8
9
  require 'rails-assets-angular-ui-router'
9
10
  require 'rails-assets-sugar'
@@ -18,5 +18,5 @@
18
18
  # -----------------------------------------------------------------------------
19
19
 
20
20
  module Faalis
21
- VERSION = '1.0.0.alpha3'
21
+ VERSION = '1.0.0.alpha4'
22
22
  end
Binary file
@@ -11,7 +11,7 @@
11
11
  #
12
12
  # It's strongly recommended that you check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(version: 20150120211313) do
14
+ ActiveRecord::Schema.define(version: 20150121060012) do
15
15
 
16
16
  create_table "application_models", force: :cascade do |t|
17
17
  t.string "model"
Binary file
@@ -1,494 +1,9 @@
1
-  (125.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
2
-  (0.3ms) select sqlite_version(*)
3
-  (106.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
5
- Migrating to DeviseCreateFaalisUsers (20131013091000)
6
-  (0.1ms) begin transaction
7
-  (0.4ms) CREATE TABLE "faalis_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "group_id" integer DEFAULT 2, "failed_attempts" integer DEFAULT 0, "unlock_token" varchar(255), "locked_at" datetime, "created_at" datetime, "updated_at" datetime)
8
-  (0.2ms) CREATE UNIQUE INDEX "index_faalis_users_on_email" ON "faalis_users" ("email")
9
-  (0.1ms) SELECT sql
10
- FROM sqlite_master
11
- WHERE name='index_faalis_users_on_email' AND type='index'
12
- UNION ALL
13
- SELECT sql
14
- FROM sqlite_temp_master
15
- WHERE name='index_faalis_users_on_email' AND type='index'
16
-
17
-  (0.1ms) CREATE UNIQUE INDEX "index_faalis_users_on_reset_password_token" ON "faalis_users" ("reset_password_token")
18
-  (0.1ms) SELECT sql
19
- FROM sqlite_master
20
- WHERE name='index_faalis_users_on_reset_password_token' AND type='index'
21
- UNION ALL
22
- SELECT sql
23
- FROM sqlite_temp_master
24
- WHERE name='index_faalis_users_on_reset_password_token' AND type='index'
25
-
26
-  (0.1ms)  SELECT sql
27
- FROM sqlite_master
28
- WHERE name='index_faalis_users_on_email' AND type='index'
29
- UNION ALL
30
- SELECT sql
31
- FROM sqlite_temp_master
32
- WHERE name='index_faalis_users_on_email' AND type='index'
33
- 
34
-  (0.1ms) CREATE UNIQUE INDEX "index_faalis_users_on_unlock_token" ON "faalis_users" ("unlock_token")
35
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131013091000"]]
36
-  (90.2ms) commit transaction
37
- Migrating to CreateFaalisGroups (20131020124701)
38
-  (0.1ms) begin transaction
39
-  (0.3ms) CREATE TABLE "faalis_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)
40
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131020124701"]]
41
-  (89.6ms) commit transaction
42
- Migrating to CreateFaalisPermissions (20131021170923)
43
-  (0.1ms) begin transaction
44
-  (0.3ms) CREATE TABLE "faalis_permissions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model" varchar(255), "permission_type" varchar(255), "created_at" datetime, "updated_at" datetime)
45
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131021170923"]]
46
-  (89.9ms) commit transaction
47
- Migrating to AddPermissionsGroupsTable (20131123120422)
48
-  (0.1ms) begin transaction
49
-  (0.3ms) CREATE TABLE "faalis_groups_permissions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "permission_id" integer, "group_id" integer)
50
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131123120422"]]
51
-  (131.5ms) commit transaction
52
- Migrating to AddUsersGroupsTable (20140613120923)
53
-  (0.1ms) begin transaction
54
-  (0.3ms) CREATE TABLE "faalis_groups_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "group_id" integer)
55
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140613120923"]]
56
-  (114.8ms) commit transaction
57
- Migrating to FaalisGroupsUsers (20140617124019)
58
-  (0.1ms) begin transaction
59
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140617124019"]]
60
-  (115.5ms) commit transaction
61
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
62
-  (0.1ms)  SELECT sql
63
- FROM sqlite_master
64
- WHERE name='index_faalis_users_on_unlock_token' AND type='index'
65
- UNION ALL
66
- SELECT sql
67
- FROM sqlite_temp_master
68
- WHERE name='index_faalis_users_on_unlock_token' AND type='index'
69
- 
70
-  (0.1ms) SELECT sql
71
- FROM sqlite_master
72
- WHERE name='index_faalis_users_on_reset_password_token' AND type='index'
73
- UNION ALL
74
- SELECT sql
75
- FROM sqlite_temp_master
76
- WHERE name='index_faalis_users_on_reset_password_token' AND type='index'
77
-
78
-  (0.1ms)  SELECT sql
79
- FROM sqlite_master
80
- WHERE name='index_faalis_users_on_email' AND type='index'
81
- UNION ALL
82
- SELECT sql
83
- FROM sqlite_temp_master
84
- WHERE name='index_faalis_users_on_email' AND type='index'
85
- 
86
-  (125.9ms) CREATE TABLE "faalis_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) 
87
-  (116.3ms) CREATE TABLE "faalis_groups_permissions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "permission_id" integer, "group_id" integer)
88
-  (126.3ms) CREATE TABLE "faalis_groups_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "group_id" integer) 
89
-  (108.1ms) CREATE TABLE "faalis_permissions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model" varchar(255), "permission_type" varchar(255), "created_at" datetime, "updated_at" datetime)
90
-  (89.4ms) CREATE TABLE "faalis_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "group_id" integer DEFAULT 2, "failed_attempts" integer DEFAULT 0, "unlock_token" varchar(255), "locked_at" datetime, "created_at" datetime, "updated_at" datetime) 
91
-  (0.1ms) select sqlite_version(*)
92
-  (91.4ms) CREATE UNIQUE INDEX "index_faalis_users_on_email" ON "faalis_users" ("email")
93
-  (0.1ms) SELECT sql
94
- FROM sqlite_master
95
- WHERE name='index_faalis_users_on_email' AND type='index'
96
- UNION ALL
97
- SELECT sql
98
- FROM sqlite_temp_master
99
- WHERE name='index_faalis_users_on_email' AND type='index'
100
-
101
-  (82.9ms) CREATE UNIQUE INDEX "index_faalis_users_on_reset_password_token" ON "faalis_users" ("reset_password_token")
102
-  (0.1ms) SELECT sql
103
- FROM sqlite_master
104
- WHERE name='index_faalis_users_on_reset_password_token' AND type='index'
105
- UNION ALL
106
- SELECT sql
107
- FROM sqlite_temp_master
108
- WHERE name='index_faalis_users_on_reset_password_token' AND type='index'
109
-
110
-  (0.1ms)  SELECT sql
111
- FROM sqlite_master
112
- WHERE name='index_faalis_users_on_email' AND type='index'
113
- UNION ALL
114
- SELECT sql
115
- FROM sqlite_temp_master
116
- WHERE name='index_faalis_users_on_email' AND type='index'
117
- 
118
-  (99.5ms) CREATE UNIQUE INDEX "index_faalis_users_on_unlock_token" ON "faalis_users" ("unlock_token")
119
-  (98.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
120
-  (100.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
121
-  (0.1ms) SELECT version FROM "schema_migrations"
122
-  (116.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140617124019')
123
-  (100.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140613120923')
124
-  (117.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20131021170923')
125
-  (100.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20131123120422')
126
-  (117.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20131020124701')
127
-  (116.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20131013091000')
128
-  (145.2ms) CREATE TABLE "faalis_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) 
129
-  (124.6ms) CREATE TABLE "faalis_groups_permissions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "permission_id" integer, "group_id" integer)
130
-  (116.5ms) CREATE TABLE "faalis_groups_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "group_id" integer) 
131
-  (149.6ms) CREATE TABLE "faalis_permissions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model" varchar(255), "permission_type" varchar(255), "created_at" datetime, "updated_at" datetime)
132
-  (248.0ms) CREATE TABLE "faalis_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "group_id" integer DEFAULT 2, "failed_attempts" integer DEFAULT 0, "unlock_token" varchar(255), "locked_at" datetime, "created_at" datetime, "updated_at" datetime) 
133
-  (0.1ms) select sqlite_version(*)
134
-  (91.4ms) CREATE UNIQUE INDEX "index_faalis_users_on_email" ON "faalis_users" ("email")
135
-  (0.1ms) SELECT sql
136
- FROM sqlite_master
137
- WHERE name='index_faalis_users_on_email' AND type='index'
138
- UNION ALL
139
- SELECT sql
140
- FROM sqlite_temp_master
141
- WHERE name='index_faalis_users_on_email' AND type='index'
142
-
143
-  (107.9ms) CREATE UNIQUE INDEX "index_faalis_users_on_reset_password_token" ON "faalis_users" ("reset_password_token")
144
-  (0.1ms) SELECT sql
145
- FROM sqlite_master
146
- WHERE name='index_faalis_users_on_reset_password_token' AND type='index'
147
- UNION ALL
148
- SELECT sql
149
- FROM sqlite_temp_master
150
- WHERE name='index_faalis_users_on_reset_password_token' AND type='index'
151
-
152
-  (0.1ms)  SELECT sql
153
- FROM sqlite_master
154
- WHERE name='index_faalis_users_on_email' AND type='index'
155
- UNION ALL
156
- SELECT sql
157
- FROM sqlite_temp_master
158
- WHERE name='index_faalis_users_on_email' AND type='index'
159
- 
160
-  (107.7ms) CREATE UNIQUE INDEX "index_faalis_users_on_unlock_token" ON "faalis_users" ("unlock_token")
161
-  (90.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
162
-  (99.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
163
-  (0.1ms) SELECT version FROM "schema_migrations"
164
-  (91.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140617124019')
165
-  (116.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20140613120923')
166
-  (150.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20131021170923')
167
-  (142.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20131123120422')
168
-  (118.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20131020124701')
169
-  (108.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20131013091000')
170
- DEPRECATION WARNING: Defining a route where `to` is a controller without an action is deprecated. Please change `to: :devise/omniauth_callbacks` to `controller: :devise/omniauth_callbacks`. (called from block in <top (required)> at /home/lxsameer/src/Yellowen/Faalis/config/routes.rb:33)
171
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
172
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
173
-  (0.1ms)  SELECT sql
174
- FROM sqlite_master
175
- WHERE name='index_faalis_users_on_unlock_token' AND type='index'
176
- UNION ALL
177
- SELECT sql
178
- FROM sqlite_temp_master
179
- WHERE name='index_faalis_users_on_unlock_token' AND type='index'
180
- 
181
-  (0.1ms) SELECT sql
182
- FROM sqlite_master
183
- WHERE name='index_faalis_users_on_reset_password_token' AND type='index'
184
- UNION ALL
185
- SELECT sql
186
- FROM sqlite_temp_master
187
- WHERE name='index_faalis_users_on_reset_password_token' AND type='index'
188
-
189
-  (0.1ms)  SELECT sql
190
- FROM sqlite_master
191
- WHERE name='index_faalis_users_on_email' AND type='index'
192
- UNION ALL
193
- SELECT sql
194
- FROM sqlite_temp_master
195
- WHERE name='index_faalis_users_on_email' AND type='index'
196
- 
197
- DEPRECATION WARNING: Defining a route where `to` is a controller without an action is deprecated. Please change `to: :devise/omniauth_callbacks` to `controller: :devise/omniauth_callbacks`. (called from block in <top (required)> at /home/lxsameer/src/Yellowen/Faalis/config/routes.rb:33)
198
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
199
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
200
-  (0.1ms)  SELECT sql
201
- FROM sqlite_master
202
- WHERE name='index_faalis_users_on_unlock_token' AND type='index'
203
- UNION ALL
204
- SELECT sql
205
- FROM sqlite_temp_master
206
- WHERE name='index_faalis_users_on_unlock_token' AND type='index'
207
- 
208
-  (0.1ms) SELECT sql
209
- FROM sqlite_master
210
- WHERE name='index_faalis_users_on_reset_password_token' AND type='index'
211
- UNION ALL
212
- SELECT sql
213
- FROM sqlite_temp_master
214
- WHERE name='index_faalis_users_on_reset_password_token' AND type='index'
215
-
216
-  (0.1ms)  SELECT sql
217
- FROM sqlite_master
218
- WHERE name='index_faalis_users_on_email' AND type='index'
219
- UNION ALL
220
- SELECT sql
221
- FROM sqlite_temp_master
222
- WHERE name='index_faalis_users_on_email' AND type='index'
223
- 
224
- DEPRECATION WARNING: Defining a route where `to` is a controller without an action is deprecated. Please change `to: :devise/omniauth_callbacks` to `controller: :devise/omniauth_callbacks`. (called from block in <top (required)> at /home/lxsameer/src/Yellowen/Faalis/config/routes.rb:33)
225
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
226
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
227
-  (0.1ms)  SELECT sql
228
- FROM sqlite_master
229
- WHERE name='index_faalis_users_on_unlock_token' AND type='index'
230
- UNION ALL
231
- SELECT sql
232
- FROM sqlite_temp_master
233
- WHERE name='index_faalis_users_on_unlock_token' AND type='index'
234
- 
235
-  (0.1ms) SELECT sql
236
- FROM sqlite_master
237
- WHERE name='index_faalis_users_on_reset_password_token' AND type='index'
238
- UNION ALL
239
- SELECT sql
240
- FROM sqlite_temp_master
241
- WHERE name='index_faalis_users_on_reset_password_token' AND type='index'
242
-
243
-  (0.1ms)  SELECT sql
244
- FROM sqlite_master
245
- WHERE name='index_faalis_users_on_email' AND type='index'
246
- UNION ALL
247
- SELECT sql
248
- FROM sqlite_temp_master
249
- WHERE name='index_faalis_users_on_email' AND type='index'
250
- 
251
- DEPRECATION WARNING: Defining a route where `to` is a controller without an action is deprecated. Please change `to: :devise/omniauth_callbacks` to `controller: :devise/omniauth_callbacks`. (called from block in <top (required)> at /home/lxsameer/src/Yellowen/Faalis/config/routes.rb:33)
252
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
253
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
254
-  (0.1ms)  SELECT sql
255
- FROM sqlite_master
256
- WHERE name='index_faalis_users_on_unlock_token' AND type='index'
257
- UNION ALL
258
- SELECT sql
259
- FROM sqlite_temp_master
260
- WHERE name='index_faalis_users_on_unlock_token' AND type='index'
261
- 
262
-  (0.1ms) SELECT sql
263
- FROM sqlite_master
264
- WHERE name='index_faalis_users_on_reset_password_token' AND type='index'
265
- UNION ALL
266
- SELECT sql
267
- FROM sqlite_temp_master
268
- WHERE name='index_faalis_users_on_reset_password_token' AND type='index'
269
-
270
-  (0.1ms)  SELECT sql
271
- FROM sqlite_master
272
- WHERE name='index_faalis_users_on_email' AND type='index'
273
- UNION ALL
274
- SELECT sql
275
- FROM sqlite_temp_master
276
- WHERE name='index_faalis_users_on_email' AND type='index'
277
- 
278
- DEPRECATION WARNING: Defining a route where `to` is a controller without an action is deprecated. Please change `to: :devise/omniauth_callbacks` to `controller: :devise/omniauth_callbacks`. (called from block in <top (required)> at /home/lxsameer/src/Yellowen/Faalis/config/routes.rb:33)
279
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
280
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
281
-  (0.1ms)  SELECT sql
282
- FROM sqlite_master
283
- WHERE name='index_faalis_users_on_unlock_token' AND type='index'
284
- UNION ALL
285
- SELECT sql
286
- FROM sqlite_temp_master
287
- WHERE name='index_faalis_users_on_unlock_token' AND type='index'
288
- 
289
-  (0.1ms) SELECT sql
290
- FROM sqlite_master
291
- WHERE name='index_faalis_users_on_reset_password_token' AND type='index'
292
- UNION ALL
293
- SELECT sql
294
- FROM sqlite_temp_master
295
- WHERE name='index_faalis_users_on_reset_password_token' AND type='index'
296
-
297
-  (0.1ms)  SELECT sql
298
- FROM sqlite_master
299
- WHERE name='index_faalis_users_on_email' AND type='index'
300
- UNION ALL
301
- SELECT sql
302
- FROM sqlite_temp_master
303
- WHERE name='index_faalis_users_on_email' AND type='index'
304
- 
305
- DEPRECATION WARNING: Defining a route where `to` is a controller without an action is deprecated. Please change `to: :devise/omniauth_callbacks` to `controller: :devise/omniauth_callbacks`. (called from block in <top (required)> at /home/lxsameer/src/Yellowen/Faalis/config/routes.rb:33)
306
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
307
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
308
-  (0.1ms)  SELECT sql
309
- FROM sqlite_master
310
- WHERE name='index_faalis_users_on_unlock_token' AND type='index'
311
- UNION ALL
312
- SELECT sql
313
- FROM sqlite_temp_master
314
- WHERE name='index_faalis_users_on_unlock_token' AND type='index'
315
- 
316
-  (0.1ms) SELECT sql
317
- FROM sqlite_master
318
- WHERE name='index_faalis_users_on_reset_password_token' AND type='index'
319
- UNION ALL
320
- SELECT sql
321
- FROM sqlite_temp_master
322
- WHERE name='index_faalis_users_on_reset_password_token' AND type='index'
323
-
324
-  (0.1ms)  SELECT sql
325
- FROM sqlite_master
326
- WHERE name='index_faalis_users_on_email' AND type='index'
327
- UNION ALL
328
- SELECT sql
329
- FROM sqlite_temp_master
330
- WHERE name='index_faalis_users_on_email' AND type='index'
331
- 
332
- DEPRECATION WARNING: Defining a route where `to` is a controller without an action is deprecated. Please change `to: :devise/omniauth_callbacks` to `controller: :devise/omniauth_callbacks`. (called from block in <top (required)> at /home/lxsameer/src/Yellowen/Faalis/config/routes.rb:33)
333
-  (146.6ms) CREATE TABLE "faalis_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) 
334
-  (108.1ms) CREATE TABLE "faalis_groups_permissions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "permission_id" integer, "group_id" integer)
335
-  (153.0ms) CREATE TABLE "faalis_groups_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "group_id" integer) 
336
-  (105.5ms) CREATE TABLE "faalis_permissions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model" varchar(255), "permission_type" varchar(255), "created_at" datetime, "updated_at" datetime)
337
-  (105.4ms) CREATE TABLE "faalis_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "group_id" integer DEFAULT 2, "failed_attempts" integer DEFAULT 0, "unlock_token" varchar(255), "locked_at" datetime, "created_at" datetime, "updated_at" datetime) 
338
-  (0.3ms) select sqlite_version(*)
339
-  (109.0ms) CREATE UNIQUE INDEX "index_faalis_users_on_email" ON "faalis_users" ("email")
340
-  (0.1ms) SELECT sql
341
- FROM sqlite_master
342
- WHERE name='index_faalis_users_on_email' AND type='index'
343
- UNION ALL
344
- SELECT sql
345
- FROM sqlite_temp_master
346
- WHERE name='index_faalis_users_on_email' AND type='index'
347
-
348
-  (99.4ms) CREATE UNIQUE INDEX "index_faalis_users_on_reset_password_token" ON "faalis_users" ("reset_password_token")
349
-  (0.1ms) SELECT sql
350
- FROM sqlite_master
351
- WHERE name='index_faalis_users_on_reset_password_token' AND type='index'
352
- UNION ALL
353
- SELECT sql
354
- FROM sqlite_temp_master
355
- WHERE name='index_faalis_users_on_reset_password_token' AND type='index'
356
-
357
-  (0.1ms)  SELECT sql
358
- FROM sqlite_master
359
- WHERE name='index_faalis_users_on_email' AND type='index'
360
- UNION ALL
361
- SELECT sql
362
- FROM sqlite_temp_master
363
- WHERE name='index_faalis_users_on_email' AND type='index'
364
- 
365
-  (99.3ms) CREATE UNIQUE INDEX "index_faalis_users_on_unlock_token" ON "faalis_users" ("unlock_token")
366
-  (114.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
367
-  (108.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
368
-  (0.1ms) SELECT version FROM "schema_migrations"
369
-  (108.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140617124019')
370
-  (129.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140613120923')
371
-  (120.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20131021170923')
372
-  (133.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131123120422')
373
-  (108.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131020124701')
374
-  (108.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20131013091000')
375
- DEPRECATION WARNING: Defining a route where `to` is a controller without an action is deprecated. Please change `to: :devise/omniauth_callbacks` to `controller: :devise/omniauth_callbacks`. (called from block in <top (required)> at /home/lxsameer/src/Yellowen/Faalis/config/routes.rb:33)
376
-  (142.2ms) CREATE TABLE "faalis_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) 
377
-  (132.9ms) CREATE TABLE "faalis_groups_permissions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "permission_id" integer, "group_id" integer)
378
-  (125.0ms) CREATE TABLE "faalis_groups_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "group_id" integer) 
379
-  (116.3ms) CREATE TABLE "faalis_permissions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model" varchar(255), "permission_type" varchar(255), "created_at" datetime, "updated_at" datetime)
380
-  (132.1ms) CREATE TABLE "faalis_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "group_id" integer DEFAULT 2, "failed_attempts" integer DEFAULT 0, "unlock_token" varchar(255), "locked_at" datetime, "created_at" datetime, "updated_at" datetime) 
381
-  (0.1ms) select sqlite_version(*)
382
-  (147.6ms) CREATE UNIQUE INDEX "index_faalis_users_on_email" ON "faalis_users" ("email")
383
-  (0.1ms) SELECT sql
384
- FROM sqlite_master
385
- WHERE name='index_faalis_users_on_email' AND type='index'
386
- UNION ALL
387
- SELECT sql
388
- FROM sqlite_temp_master
389
- WHERE name='index_faalis_users_on_email' AND type='index'
390
-
391
-  (99.4ms) CREATE UNIQUE INDEX "index_faalis_users_on_reset_password_token" ON "faalis_users" ("reset_password_token")
392
-  (0.1ms) SELECT sql
393
- FROM sqlite_master
394
- WHERE name='index_faalis_users_on_reset_password_token' AND type='index'
395
- UNION ALL
396
- SELECT sql
397
- FROM sqlite_temp_master
398
- WHERE name='index_faalis_users_on_reset_password_token' AND type='index'
399
-
400
-  (0.1ms)  SELECT sql
401
- FROM sqlite_master
402
- WHERE name='index_faalis_users_on_email' AND type='index'
403
- UNION ALL
404
- SELECT sql
405
- FROM sqlite_temp_master
406
- WHERE name='index_faalis_users_on_email' AND type='index'
407
- 
408
-  (115.9ms) CREATE UNIQUE INDEX "index_faalis_users_on_unlock_token" ON "faalis_users" ("unlock_token")
409
-  (98.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
410
-  (99.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
411
-  (0.1ms) SELECT version FROM "schema_migrations"
412
-  (99.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20140617124019')
413
-  (100.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140613120923')
414
-  (116.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20131021170923')
415
-  (150.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20131123120422')
416
-  (108.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20131020124701')
417
-  (108.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20131013091000')
418
- DEPRECATION WARNING: Defining a route where `to` is a controller without an action is deprecated. Please change `to: :devise/omniauth_callbacks` to `controller: :devise/omniauth_callbacks`. (called from block in <top (required)> at /home/lxsameer/src/Yellowen/Faalis/config/routes.rb:33)
419
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
420
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
421
-  (0.1ms)  SELECT sql
422
- FROM sqlite_master
423
- WHERE name='index_faalis_users_on_unlock_token' AND type='index'
424
- UNION ALL
425
- SELECT sql
426
- FROM sqlite_temp_master
427
- WHERE name='index_faalis_users_on_unlock_token' AND type='index'
428
- 
429
-  (0.1ms) SELECT sql
430
- FROM sqlite_master
431
- WHERE name='index_faalis_users_on_reset_password_token' AND type='index'
432
- UNION ALL
433
- SELECT sql
434
- FROM sqlite_temp_master
435
- WHERE name='index_faalis_users_on_reset_password_token' AND type='index'
436
-
437
-  (0.1ms)  SELECT sql
438
- FROM sqlite_master
439
- WHERE name='index_faalis_users_on_email' AND type='index'
440
- UNION ALL
441
- SELECT sql
442
- FROM sqlite_temp_master
443
- WHERE name='index_faalis_users_on_email' AND type='index'
444
- 
445
1
  DEPRECATION WARNING: Defining a route where `to` is a controller without an action is deprecated. Please change `to: :devise/omniauth_callbacks` to `controller: :devise/omniauth_callbacks`. (called from block in <top (required)> at /home/lxsameer/src/Yellowen/Faalis/config/routes.rb:33)
446
-  (115.2ms) CREATE TABLE "faalis_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) 
447
-  (124.7ms) CREATE TABLE "faalis_groups_permissions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "permission_id" integer, "group_id" integer)
448
-  (108.2ms) CREATE TABLE "faalis_groups_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "group_id" integer) 
449
-  (108.2ms) CREATE TABLE "faalis_permissions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model" varchar(255), "permission_type" varchar(255), "created_at" datetime, "updated_at" datetime)
450
-  (105.3ms) CREATE TABLE "faalis_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "group_id" integer DEFAULT 2, "failed_attempts" integer DEFAULT 0, "unlock_token" varchar(255), "locked_at" datetime, "created_at" datetime, "updated_at" datetime) 
451
-  (0.1ms) select sqlite_version(*)
452
-  (107.8ms) CREATE UNIQUE INDEX "index_faalis_users_on_email" ON "faalis_users" ("email")
453
-  (0.1ms) SELECT sql
454
- FROM sqlite_master
455
- WHERE name='index_faalis_users_on_email' AND type='index'
456
- UNION ALL
457
- SELECT sql
458
- FROM sqlite_temp_master
459
- WHERE name='index_faalis_users_on_email' AND type='index'
460
-
461
-  (174.2ms) CREATE UNIQUE INDEX "index_faalis_users_on_reset_password_token" ON "faalis_users" ("reset_password_token")
462
-  (0.1ms) SELECT sql
463
- FROM sqlite_master
464
- WHERE name='index_faalis_users_on_reset_password_token' AND type='index'
465
- UNION ALL
466
- SELECT sql
467
- FROM sqlite_temp_master
468
- WHERE name='index_faalis_users_on_reset_password_token' AND type='index'
469
-
470
-  (0.1ms)  SELECT sql
471
- FROM sqlite_master
472
- WHERE name='index_faalis_users_on_email' AND type='index'
473
- UNION ALL
474
- SELECT sql
475
- FROM sqlite_temp_master
476
- WHERE name='index_faalis_users_on_email' AND type='index'
477
- 
478
-  (125.5ms) CREATE UNIQUE INDEX "index_faalis_users_on_unlock_token" ON "faalis_users" ("unlock_token")
479
-  (106.4ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
480
-  (116.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
481
-  (0.1ms) SELECT version FROM "schema_migrations"
482
-  (116.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140617124019')
483
-  (116.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20140613120923')
484
-  (116.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20131021170923')
485
-  (133.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131123120422')
486
-  (150.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20131020124701')
487
-  (116.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20131013091000')
488
2
  DEPRECATION WARNING: Defining a route where `to` is a controller without an action is deprecated. Please change `to: :devise/omniauth_callbacks` to `controller: :devise/omniauth_callbacks`. (called from block in <top (required)> at /home/lxsameer/src/Yellowen/Faalis/config/routes.rb:33)
489
-  (102.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
490
-  (0.1ms) select sqlite_version(*)
491
-  (83.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3
+ DEPRECATION WARNING: Defining a route where `to` is a controller without an action is deprecated. Please change `to: :devise/omniauth_callbacks` to `controller: :devise/omniauth_callbacks`. (called from block in <top (required)> at /home/lxsameer/src/Yellowen/Faalis/config/routes.rb:33)
4
+  (189.5ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
5
+  (0.2ms) select sqlite_version(*)
6
+  (139.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
492
7
  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
493
8
  Migrating to DeviseCreateFaalisUsers (20131013091000)
494
9
   (0.1ms) begin transaction
@@ -521,35 +36,41 @@ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `n
521
36
  WHERE name='index_faalis_users_on_email' AND type='index'
522
37
  
523
38
   (0.1ms) CREATE UNIQUE INDEX "index_faalis_users_on_unlock_token" ON "faalis_users" ("unlock_token")
524
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131013091000"]]
525
-  (89.5ms) commit transaction
39
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131013091000"]]
40
+  (146.0ms) commit transaction
526
41
  Migrating to CreateFaalisGroups (20131020124701)
527
42
   (0.1ms) begin transaction
528
43
  DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/lxsameer/src/Yellowen/Faalis/db/migrate/20131020124701_create_faalis_groups.rb:7)
529
-  (0.3ms) CREATE TABLE "faalis_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "role" varchar, "created_at" datetime, "updated_at" datetime)
530
- SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131020124701"]]
531
-  (76.1ms) commit transaction
44
+  (0.6ms) CREATE TABLE "faalis_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "role" varchar, "created_at" datetime, "updated_at" datetime)
45
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131020124701"]]
46
+  (128.3ms) commit transaction
532
47
  Migrating to CreateFaalisPermissions (20131021170923)
533
48
   (0.1ms) begin transaction
534
49
  DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/lxsameer/src/Yellowen/Faalis/db/migrate/20131021170923_create_faalis_permissions.rb:7)
535
-  (0.3ms) CREATE TABLE "faalis_permissions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model" varchar, "permission_type" varchar, "created_at" datetime, "updated_at" datetime)
536
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131021170923"]]
537
-  (80.9ms) commit transaction
50
+  (0.5ms) CREATE TABLE "faalis_permissions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model" varchar, "permission_type" varchar, "created_at" datetime, "updated_at" datetime)
51
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131021170923"]]
52
+  (127.7ms) commit transaction
538
53
  Migrating to AddPermissionsGroupsTable (20131123120422)
539
54
   (0.1ms) begin transaction
540
-  (0.3ms) CREATE TABLE "faalis_groups_permissions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "permission_id" integer, "group_id" integer)
55
+  (0.4ms) CREATE TABLE "faalis_groups_permissions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "permission_id" integer, "group_id" integer)
541
56
  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131123120422"]]
542
-  (106.5ms) commit transaction
57
+  (121.5ms) commit transaction
543
58
  Migrating to AddUsersGroupsTable (20140613120923)
544
59
   (0.1ms) begin transaction
545
-  (0.3ms) CREATE TABLE "faalis_groups_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "group_id" integer)
546
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140613120923"]]
547
-  (106.4ms) commit transaction
60
+  (0.5ms) CREATE TABLE "faalis_groups_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "group_id" integer)
61
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140613120923"]]
62
+  (120.7ms) commit transaction
548
63
  Migrating to FaalisGroupsUsers (20140617124019)
549
64
   (0.1ms) begin transaction
550
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140617124019"]]
551
-  (93.5ms) commit transaction
552
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
65
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140617124019"]]
66
+  (122.1ms) commit transaction
67
+ Migrating to CreateApplicationModels (20150121060012)
68
+  (0.1ms) begin transaction
69
+ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/lxsameer/src/Yellowen/Faalis/spec/dummy/db/migrate/20150121060012_create_application_models.model_discovery_engine.rb:7)
70
+  (0.3ms) CREATE TABLE "application_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model" varchar, "created_at" datetime, "updated_at" datetime) 
71
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150121060012"]]
72
+  (121.6ms) commit transaction
73
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
553
74
   (0.1ms)  SELECT sql
554
75
  FROM sqlite_master
555
76
  WHERE name='index_faalis_users_on_unlock_token' AND type='index'
@@ -575,31 +96,15 @@ Migrating to FaalisGroupsUsers (20140617124019)
575
96
  WHERE name='index_faalis_users_on_email' AND type='index'
576
97
  
577
98
  DEPRECATION WARNING: Defining a route where `to` is a controller without an action is deprecated. Please change `to: :devise/omniauth_callbacks` to `controller: :devise/omniauth_callbacks`. (called from block in <top (required)> at /home/lxsameer/src/Yellowen/Faalis/config/routes.rb:33)
578
-  (115.0ms) CREATE TABLE "faalis_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "role" varchar, "created_at" datetime, "updated_at" datetime) 
579
-  (116.4ms) CREATE TABLE "faalis_groups_permissions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "permission_id" integer, "group_id" integer)
580
-  (99.8ms) CREATE TABLE "faalis_groups_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "group_id" integer) 
581
-  (104.2ms) CREATE TABLE "faalis_permissions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model" varchar, "permission_type" varchar, "created_at" datetime, "updated_at" datetime)
582
-  (100.4ms) CREATE TABLE "faalis_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "first_name" varchar, "last_name" varchar, "group_id" integer DEFAULT 2, "failed_attempts" integer DEFAULT 0, "unlock_token" varchar, "locked_at" datetime, "created_at" datetime, "updated_at" datetime) 
583
-  (0.1ms) select sqlite_version(*)
584
-  (116.3ms) CREATE UNIQUE INDEX "index_faalis_users_on_email" ON "faalis_users" ("email")
585
-  (0.1ms) SELECT sql
586
- FROM sqlite_master
587
- WHERE name='index_faalis_users_on_email' AND type='index'
588
- UNION ALL
589
- SELECT sql
590
- FROM sqlite_temp_master
591
- WHERE name='index_faalis_users_on_email' AND type='index'
592
-
593
-  (77.7ms) CREATE UNIQUE INDEX "index_faalis_users_on_reset_password_token" ON "faalis_users" ("reset_password_token")
594
-  (0.1ms) SELECT sql
595
- FROM sqlite_master
596
- WHERE name='index_faalis_users_on_reset_password_token' AND type='index'
597
- UNION ALL
598
- SELECT sql
599
- FROM sqlite_temp_master
600
- WHERE name='index_faalis_users_on_reset_password_token' AND type='index'
601
-
602
-  (0.1ms)  SELECT sql
99
+  (141.8ms) CREATE TABLE "application_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model" varchar, "created_at" datetime, "updated_at" datetime) 
100
+  (123.5ms) CREATE TABLE "faalis_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "role" varchar, "created_at" datetime, "updated_at" datetime)
101
+  (123.5ms) CREATE TABLE "faalis_groups_permissions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "permission_id" integer, "group_id" integer) 
102
+  (124.0ms) CREATE TABLE "faalis_groups_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "group_id" integer)
103
+  (123.7ms) CREATE TABLE "faalis_permissions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model" varchar, "permission_type" varchar, "created_at" datetime, "updated_at" datetime) 
104
+  (142.9ms) CREATE TABLE "faalis_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "first_name" varchar, "last_name" varchar, "group_id" integer DEFAULT 2, "failed_attempts" integer DEFAULT 0, "unlock_token" varchar, "locked_at" datetime, "created_at" datetime, "updated_at" datetime)
105
+  (0.2ms) select sqlite_version(*)
106
+  (131.2ms) CREATE UNIQUE INDEX "index_faalis_users_on_email" ON "faalis_users" ("email")
107
+  (0.2ms)  SELECT sql
603
108
  FROM sqlite_master
604
109
  WHERE name='index_faalis_users_on_email' AND type='index'
605
110
  UNION ALL
@@ -607,29 +112,8 @@ DEPRECATION WARNING: Defining a route where `to` is a controller without an acti
607
112
  FROM sqlite_temp_master
608
113
  WHERE name='index_faalis_users_on_email' AND type='index'
609
114
  
610
-  (82.7ms) CREATE UNIQUE INDEX "index_faalis_users_on_unlock_token" ON "faalis_users" ("unlock_token")
611
-  (73.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
612
-  (99.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
613
-  (0.1ms) SELECT version FROM "schema_migrations"
614
-  (100.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140617124019')
615
-  (100.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140613120923')
616
-  (100.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20131021170923')
617
-  (100.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20131123120422')
618
-  (142.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20131020124701')
619
-  (100.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20131013091000')
620
- DEPRECATION WARNING: Defining a route where `to` is a controller without an action is deprecated. Please change `to: :devise/omniauth_callbacks` to `controller: :devise/omniauth_callbacks`. (called from block in <top (required)> at /home/lxsameer/src/Yellowen/Faalis/config/routes.rb:33)
621
- Faalis::User Load (0.2ms) SELECT "faalis_users".* FROM "faalis_users" ORDER BY "faalis_users"."id" ASC LIMIT 1
622
- DEPRECATION WARNING: Defining a route where `to` is a controller without an action is deprecated. Please change `to: :devise/omniauth_callbacks` to `controller: :devise/omniauth_callbacks`. (called from block in <top (required)> at /home/lxsameer/src/Yellowen/Faalis/config/routes.rb:33)
623
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
624
-  (0.1ms) SELECT sql
625
- FROM sqlite_master
626
- WHERE name='index_faalis_users_on_unlock_token' AND type='index'
627
- UNION ALL
628
- SELECT sql
629
- FROM sqlite_temp_master
630
- WHERE name='index_faalis_users_on_unlock_token' AND type='index'
631
-
632
-  (0.1ms)  SELECT sql
115
+  (131.4ms) CREATE UNIQUE INDEX "index_faalis_users_on_reset_password_token" ON "faalis_users" ("reset_password_token")
116
+  (0.2ms)  SELECT sql
633
117
  FROM sqlite_master
634
118
  WHERE name='index_faalis_users_on_reset_password_token' AND type='index'
635
119
  UNION ALL
@@ -637,7 +121,7 @@ DEPRECATION WARNING: Defining a route where `to` is a controller without an acti
637
121
  FROM sqlite_temp_master
638
122
  WHERE name='index_faalis_users_on_reset_password_token' AND type='index'
639
123
  
640
-  (0.1ms) SELECT sql
124
+  (0.2ms) SELECT sql
641
125
  FROM sqlite_master
642
126
  WHERE name='index_faalis_users_on_email' AND type='index'
643
127
  UNION ALL
@@ -645,170 +129,108 @@ DEPRECATION WARNING: Defining a route where `to` is a controller without an acti
645
129
  FROM sqlite_temp_master
646
130
  WHERE name='index_faalis_users_on_email' AND type='index'
647
131
 
132
+  (147.6ms) CREATE UNIQUE INDEX "index_faalis_users_on_unlock_token" ON "faalis_users" ("unlock_token")
133
+  (128.6ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
134
+  (123.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
135
+  (0.2ms) SELECT version FROM "schema_migrations"
136
+  (125.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150121060012')
137
+  (124.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20131020124701')
138
+  (124.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20131021170923')
139
+  (149.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140617124019')
140
+  (124.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20131123120422')
141
+  (141.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140613120923')
142
+  (140.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131013091000')
648
143
  DEPRECATION WARNING: Defining a route where `to` is a controller without an action is deprecated. Please change `to: :devise/omniauth_callbacks` to `controller: :devise/omniauth_callbacks`. (called from block in <top (required)> at /home/lxsameer/src/Yellowen/Faalis/config/routes.rb:33)
649
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
144
+ Faalis::User Load (0.4ms) SELECT "faalis_users".* FROM "faalis_users" ORDER BY "faalis_users"."id" ASC LIMIT 1
145
+  (0.2ms) begin transaction
146
+ Faalis::User Exists (0.2ms) SELECT 1 AS one FROM "faalis_users" WHERE "faalis_users"."email" = 'asdasd@asdasd.cc' LIMIT 1
147
+ Faalis::Group Load (0.2ms) SELECT "faalis_groups".* FROM "faalis_groups" WHERE "faalis_groups"."role" = ? LIMIT 1 [["role", "guest"]]
148
+  (0.1ms) rollback transaction
149
+  (0.1ms) begin transaction
150
+ Faalis::User Exists (0.2ms) SELECT 1 AS one FROM "faalis_users" WHERE "faalis_users"."email" = 'asdasd@asdasd.cc' LIMIT 1
151
+ Faalis::Group Load (0.1ms) SELECT "faalis_groups".* FROM "faalis_groups" WHERE "faalis_groups"."role" = ? LIMIT 1 [["role", "guest"]]
152
+  (0.1ms) rollback transaction
650
153
  DEPRECATION WARNING: Defining a route where `to` is a controller without an action is deprecated. Please change `to: :devise/omniauth_callbacks` to `controller: :devise/omniauth_callbacks`. (called from block in <top (required)> at /home/lxsameer/src/Yellowen/Faalis/config/routes.rb:33)
651
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
154
+  (0.1ms) begin transaction
155
+ Faalis::User Exists (0.2ms) SELECT 1 AS one FROM "faalis_users" WHERE "faalis_users"."email" = 'asda@asd.cc' LIMIT 1
156
+ Faalis::Group Load (0.2ms) SELECT "faalis_groups".* FROM "faalis_groups" WHERE "faalis_groups"."name" = ? AND "faalis_groups"."role" = ? LIMIT 1 [["name", "Guest"], ["role", "guest"]]
157
+ SQL (0.3ms) INSERT INTO "faalis_groups" ("name", "role", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Guest"], ["role", "guest"], ["created_at", "2015-01-21 13:31:12.274306"], ["updated_at", "2015-01-21 13:31:12.274306"]]
158
+ SQL (0.3ms) INSERT INTO "faalis_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "asda@asd.cc"], ["encrypted_password", "$2a$10$lB2PRQiRcQksZx2NFUg9JuWwKiMEG2kuLPJYWssCSyuC.uN24OLSC"], ["created_at", "2015-01-21 13:31:12.220496"], ["updated_at", "2015-01-21 13:31:12.220496"]]
159
+ SQL (0.1ms) INSERT INTO "faalis_groups_users" ("group_id", "user_id") VALUES (?, ?) [["group_id", 1], ["user_id", 1]]
160
+  (172.1ms) commit transaction
652
161
  DEPRECATION WARNING: Defining a route where `to` is a controller without an action is deprecated. Please change `to: :devise/omniauth_callbacks` to `controller: :devise/omniauth_callbacks`. (called from block in <top (required)> at /home/lxsameer/src/Yellowen/Faalis/config/routes.rb:33)
653
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
162
+ Faalis::User Load (0.3ms) SELECT "faalis_users".* FROM "faalis_users" ORDER BY "faalis_users"."id" ASC LIMIT 1
163
+ Faalis::Group Load (0.3ms) SELECT "faalis_groups".* FROM "faalis_groups" INNER JOIN "faalis_groups_users" ON "faalis_groups"."id" = "faalis_groups_users"."group_id" WHERE "faalis_groups_users"."user_id" = ? [["user_id", 1]]
164
+ Faalis::User Load (0.6ms) SELECT "faalis_users".* FROM "faalis_users" ORDER BY "faalis_users"."id" DESC LIMIT 1
165
+ Faalis::Group Load (0.2ms) SELECT "faalis_groups".* FROM "faalis_groups" INNER JOIN "faalis_groups_users" ON "faalis_groups"."id" = "faalis_groups_users"."group_id" WHERE "faalis_groups_users"."user_id" = ? [["user_id", 1]]
654
166
  DEPRECATION WARNING: Defining a route where `to` is a controller without an action is deprecated. Please change `to: :devise/omniauth_callbacks` to `controller: :devise/omniauth_callbacks`. (called from block in <top (required)> at /home/lxsameer/src/Yellowen/Faalis/config/routes.rb:33)
655
-  (115.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
656
-  (0.1ms) select sqlite_version(*)
657
-  (101.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
658
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
659
- Migrating to CreateApplicationModels (20150120211313)
660
-  (0.1ms) begin transaction
661
- DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/lxsameer/src/Yellowen/Faalis/spec/dummy/db/migrate/20150120211313_create_application_models.model_discovery_engine.rb:7)
662
-  (0.3ms) CREATE TABLE "application_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model" varchar, "created_at" datetime, "updated_at" datetime)
663
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150120211313"]]
664
-  (103.0ms) commit transaction
665
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
666
167
  DEPRECATION WARNING: Defining a route where `to` is a controller without an action is deprecated. Please change `to: :devise/omniauth_callbacks` to `controller: :devise/omniauth_callbacks`. (called from block in <top (required)> at /home/lxsameer/src/Yellowen/Faalis/config/routes.rb:33)
667
-  (129.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
668
-  (0.1ms) select sqlite_version(*)
669
-  (99.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
670
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
671
- Migrating to DeviseCreateFaalisUsers (20131013091000)
168
+ ApplicationModels Load (0.3ms) SELECT "application_models".* FROM "application_models" WHERE "application_models"."model" = ? LIMIT 1 [["model", "Faalis::User"]]
169
+  (0.1ms) begin transaction
170
+ SQL (0.4ms) INSERT INTO "application_models" ("model", "created_at", "updated_at") VALUES (?, ?, ?) [["model", "Faalis::User"], ["created_at", "2015-01-24 23:11:46.825834"], ["updated_at", "2015-01-24 23:11:46.825834"]]
171
+  (180.7ms) commit transaction
172
+ ApplicationModels Load (0.2ms) SELECT "application_models".* FROM "application_models" WHERE "application_models"."model" = ? LIMIT 1 [["model", "Faalis::Group"]]
173
+  (0.1ms) begin transaction
174
+ SQL (0.3ms) INSERT INTO "application_models" ("model", "created_at", "updated_at") VALUES (?, ?, ?) [["model", "Faalis::Group"], ["created_at", "2015-01-24 23:11:47.011680"], ["updated_at", "2015-01-24 23:11:47.011680"]]
175
+  (144.7ms) commit transaction
176
+ ApplicationModels Load (0.2ms) SELECT "application_models".* FROM "application_models" WHERE "application_models"."model" = ? LIMIT 1 [["model", "Faalis::Permission"]]
177
+  (0.2ms) begin transaction
178
+ SQL (0.2ms) INSERT INTO "application_models" ("model", "created_at", "updated_at") VALUES (?, ?, ?) [["model", "Faalis::Permission"], ["created_at", "2015-01-24 23:11:47.161645"], ["updated_at", "2015-01-24 23:11:47.161645"]]
179
+  (111.8ms) commit transaction
180
+ ApplicationModels Load (0.3ms) SELECT "application_models".* FROM "application_models"
181
+ Faalis::Permission Load (14.5ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'read' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::User"]]
672
182
   (0.1ms) begin transaction
673
- DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/lxsameer/src/Yellowen/Faalis/db/migrate/20131013091000_devise_create_faalis_users.rb:53)
674
-  (0.4ms) CREATE TABLE "faalis_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "first_name" varchar, "last_name" varchar, "group_id" integer DEFAULT 2, "failed_attempts" integer DEFAULT 0, "unlock_token" varchar, "locked_at" datetime, "created_at" datetime, "updated_at" datetime)
675
-  (0.2ms) CREATE UNIQUE INDEX "index_faalis_users_on_email" ON "faalis_users" ("email")
676
-  (0.1ms) SELECT sql
677
- FROM sqlite_master
678
- WHERE name='index_faalis_users_on_email' AND type='index'
679
- UNION ALL
680
- SELECT sql
681
- FROM sqlite_temp_master
682
- WHERE name='index_faalis_users_on_email' AND type='index'
683
-
684
-  (0.2ms) CREATE UNIQUE INDEX "index_faalis_users_on_reset_password_token" ON "faalis_users" ("reset_password_token")
685
-  (0.1ms) SELECT sql
686
- FROM sqlite_master
687
- WHERE name='index_faalis_users_on_reset_password_token' AND type='index'
688
- UNION ALL
689
- SELECT sql
690
- FROM sqlite_temp_master
691
- WHERE name='index_faalis_users_on_reset_password_token' AND type='index'
692
-
693
-  (0.1ms)  SELECT sql
694
- FROM sqlite_master
695
- WHERE name='index_faalis_users_on_email' AND type='index'
696
- UNION ALL
697
- SELECT sql
698
- FROM sqlite_temp_master
699
- WHERE name='index_faalis_users_on_email' AND type='index'
700
- 
701
-  (0.1ms) CREATE UNIQUE INDEX "index_faalis_users_on_unlock_token" ON "faalis_users" ("unlock_token")
702
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131013091000"]]
703
-  (99.3ms) commit transaction
704
- Migrating to CreateFaalisGroups (20131020124701)
183
+ SQL (0.2ms) INSERT INTO "faalis_permissions" ("model", "permission_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["model", "Faalis::User"], ["permission_type", "read"], ["created_at", "2015-01-24 23:11:47.302658"], ["updated_at", "2015-01-24 23:11:47.302658"]]
184
+  (153.2ms) commit transaction
185
+ Faalis::Permission Load (0.3ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'update' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::User"]]
186
+  (0.2ms) begin transaction
187
+ SQL (0.3ms) INSERT INTO "faalis_permissions" ("model", "permission_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["model", "Faalis::User"], ["permission_type", "update"], ["created_at", "2015-01-24 23:11:47.461803"], ["updated_at", "2015-01-24 23:11:47.461803"]]
188
+  (126.0ms) commit transaction
189
+ Faalis::Permission Load (0.4ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'create' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::User"]]
190
+  (0.2ms) begin transaction
191
+ SQL (0.3ms) INSERT INTO "faalis_permissions" ("model", "permission_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["model", "Faalis::User"], ["permission_type", "create"], ["created_at", "2015-01-24 23:11:47.593834"], ["updated_at", "2015-01-24 23:11:47.593834"]]
192
+  (153.2ms) commit transaction
193
+ Faalis::Permission Load (0.4ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'destroy' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::User"]]
705
194
   (0.1ms) begin transaction
706
- DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/lxsameer/src/Yellowen/Faalis/db/migrate/20131020124701_create_faalis_groups.rb:7)
707
-  (0.3ms) CREATE TABLE "faalis_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "role" varchar, "created_at" datetime, "updated_at" datetime)
708
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131020124701"]]
709
-  (122.7ms) commit transaction
710
- Migrating to CreateFaalisPermissions (20131021170923)
195
+ SQL (0.2ms) INSERT INTO "faalis_permissions" ("model", "permission_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["model", "Faalis::User"], ["permission_type", "destroy"], ["created_at", "2015-01-24 23:11:47.753046"], ["updated_at", "2015-01-24 23:11:47.753046"]]
196
+  (127.4ms) commit transaction
197
+ Faalis::Permission Load (0.1ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'read' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::Group"]]
711
198
   (0.1ms) begin transaction
712
- DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/lxsameer/src/Yellowen/Faalis/db/migrate/20131021170923_create_faalis_permissions.rb:7)
713
-  (0.3ms) CREATE TABLE "faalis_permissions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model" varchar, "permission_type" varchar, "created_at" datetime, "updated_at" datetime)
714
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131021170923"]]
715
-  (106.2ms) commit transaction
716
- Migrating to AddPermissionsGroupsTable (20131123120422)
199
+ SQL (0.2ms) INSERT INTO "faalis_permissions" ("model", "permission_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["model", "Faalis::Group"], ["permission_type", "read"], ["created_at", "2015-01-24 23:11:47.885144"], ["updated_at", "2015-01-24 23:11:47.885144"]]
200
+  (111.6ms) commit transaction
201
+ Faalis::Permission Load (0.1ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'update' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::Group"]]
717
202
   (0.1ms) begin transaction
718
-  (0.3ms) CREATE TABLE "faalis_groups_permissions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "permission_id" integer, "group_id" integer)
719
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131123120422"]]
720
-  (107.8ms) commit transaction
721
- Migrating to AddUsersGroupsTable (20140613120923)
203
+ SQL (0.3ms) INSERT INTO "faalis_permissions" ("model", "permission_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["model", "Faalis::Group"], ["permission_type", "update"], ["created_at", "2015-01-24 23:11:48.001132"], ["updated_at", "2015-01-24 23:11:48.001132"]]
204
+  (127.6ms) commit transaction
205
+ Faalis::Permission Load (0.2ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'create' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::Group"]]
722
206
   (0.1ms) begin transaction
723
-  (0.3ms) CREATE TABLE "faalis_groups_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "group_id" integer)
724
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140613120923"]]
725
-  (114.8ms) commit transaction
726
- Migrating to FaalisGroupsUsers (20140617124019)
207
+ SQL (0.4ms) INSERT INTO "faalis_permissions" ("model", "permission_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["model", "Faalis::Group"], ["permission_type", "create"], ["created_at", "2015-01-24 23:11:48.134408"], ["updated_at", "2015-01-24 23:11:48.134408"]]
208
+  (126.2ms) commit transaction
209
+ Faalis::Permission Load (0.1ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'destroy' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::Group"]]
727
210
   (0.1ms) begin transaction
728
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140617124019"]]
729
-  (115.5ms) commit transaction
730
- Migrating to CreateApplicationModels (20150120211313)
731
-  (0.7ms) begin transaction
732
- DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/lxsameer/src/Yellowen/Faalis/spec/dummy/db/migrate/20150120211313_create_application_models.model_discovery_engine.rb:7)
733
-  (0.3ms) CREATE TABLE "application_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model" varchar, "created_at" datetime, "updated_at" datetime) 
734
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150120211313"]]
735
-  (146.7ms) commit transaction
736
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
737
-  (0.1ms)  SELECT sql
738
- FROM sqlite_master
739
- WHERE name='index_faalis_users_on_unlock_token' AND type='index'
740
- UNION ALL
741
- SELECT sql
742
- FROM sqlite_temp_master
743
- WHERE name='index_faalis_users_on_unlock_token' AND type='index'
744
- 
745
-  (0.1ms) SELECT sql
746
- FROM sqlite_master
747
- WHERE name='index_faalis_users_on_reset_password_token' AND type='index'
748
- UNION ALL
749
- SELECT sql
750
- FROM sqlite_temp_master
751
- WHERE name='index_faalis_users_on_reset_password_token' AND type='index'
752
-
753
-  (0.1ms)  SELECT sql
754
- FROM sqlite_master
755
- WHERE name='index_faalis_users_on_email' AND type='index'
756
- UNION ALL
757
- SELECT sql
758
- FROM sqlite_temp_master
759
- WHERE name='index_faalis_users_on_email' AND type='index'
760
- 
211
+ SQL (0.2ms) INSERT INTO "faalis_permissions" ("model", "permission_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["model", "Faalis::Group"], ["permission_type", "destroy"], ["created_at", "2015-01-24 23:11:48.265710"], ["updated_at", "2015-01-24 23:11:48.265710"]]
212
+  (113.1ms) commit transaction
213
+ Faalis::Permission Load (0.2ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'read' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::User"]]
214
+ Faalis::Permission Load (0.1ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'update' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::User"]]
215
+ Faalis::Permission Load (0.1ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'create' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::User"]]
216
+ Faalis::Permission Load (0.1ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'destroy' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::User"]]
217
+ Faalis::Permission Load (0.1ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'read' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::Group"]]
218
+ Faalis::Permission Load (0.1ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'update' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::Group"]]
219
+ Faalis::Permission Load (0.1ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'create' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::Group"]]
220
+ Faalis::Permission Load (0.1ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'destroy' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::Group"]]
761
221
  DEPRECATION WARNING: Defining a route where `to` is a controller without an action is deprecated. Please change `to: :devise/omniauth_callbacks` to `controller: :devise/omniauth_callbacks`. (called from block in <top (required)> at /home/lxsameer/src/Yellowen/Faalis/config/routes.rb:33)
762
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
763
- ApplicationModels Load (0.2ms) SELECT "application_models".* FROM "application_models" WHERE "application_models"."model" = ? LIMIT 1 [["model", "Faalis::User"]]
764
-  (0.1ms) begin transaction
765
- SQL (0.2ms) INSERT INTO "application_models" ("model", "created_at", "updated_at") VALUES (?, ?, ?) [["model", "Faalis::User"], ["created_at", "2015-01-20 21:14:33.355300"], ["updated_at", "2015-01-20 21:14:33.355300"]]
766
-  (137.4ms) commit transaction
767
- ApplicationModels Load (0.1ms) SELECT "application_models".* FROM "application_models" WHERE "application_models"."model" = ? LIMIT 1 [["model", "ActiveRecord::SchemaMigration"]]
768
-  (0.1ms) begin transaction
769
- SQL (0.1ms) INSERT INTO "application_models" ("model", "created_at", "updated_at") VALUES (?, ?, ?) [["model", "ActiveRecord::SchemaMigration"], ["created_at", "2015-01-20 21:14:33.495501"], ["updated_at", "2015-01-20 21:14:33.495501"]]
770
-  (114.7ms) commit transaction
771
- ApplicationModels Load (0.1ms) SELECT "application_models".* FROM "application_models" WHERE "application_models"."model" = ? LIMIT 1 [["model", "Faalis::Permission"]]
772
-  (0.1ms) begin transaction
773
- SQL (0.1ms) INSERT INTO "application_models" ("model", "created_at", "updated_at") VALUES (?, ?, ?) [["model", "Faalis::Permission"], ["created_at", "2015-01-20 21:14:33.612365"], ["updated_at", "2015-01-20 21:14:33.612365"]]
774
-  (138.7ms) commit transaction
222
+ ApplicationModels Load (0.3ms) SELECT "application_models".* FROM "application_models" WHERE "application_models"."model" = ? LIMIT 1 [["model", "Faalis::User"]]
775
223
  ApplicationModels Load (0.1ms) SELECT "application_models".* FROM "application_models" WHERE "application_models"."model" = ? LIMIT 1 [["model", "Faalis::Group"]]
776
-  (0.1ms) begin transaction
777
- SQL (0.1ms) INSERT INTO "application_models" ("model", "created_at", "updated_at") VALUES (?, ?, ?) [["model", "Faalis::Group"], ["created_at", "2015-01-20 21:14:33.753372"], ["updated_at", "2015-01-20 21:14:33.753372"]]
778
-  (132.6ms) commit transaction
224
+ ApplicationModels Load (0.1ms) SELECT "application_models".* FROM "application_models" WHERE "application_models"."model" = ? LIMIT 1 [["model", "Faalis::Permission"]]
779
225
  ApplicationModels Load (0.2ms) SELECT "application_models".* FROM "application_models"
780
- Faalis::Permission Load (0.1ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'read' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::User"]]
781
-  (0.1ms) begin transaction
782
- SQL (0.2ms) INSERT INTO "faalis_permissions" ("model", "permission_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["model", "Faalis::User"], ["permission_type", "read"], ["created_at", "2015-01-20 21:14:33.894543"], ["updated_at", "2015-01-20 21:14:33.894543"]]
783
-  (108.2ms) commit transaction
784
- Faalis::Permission Load (0.2ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'update' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::User"]]
785
-  (0.1ms) begin transaction
786
- SQL (0.1ms) INSERT INTO "faalis_permissions" ("model", "permission_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["model", "Faalis::User"], ["permission_type", "update"], ["created_at", "2015-01-20 21:14:34.005963"], ["updated_at", "2015-01-20 21:14:34.005963"]]
787
-  (114.1ms) commit transaction
788
- Faalis::Permission Load (0.2ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'create' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::User"]]
789
-  (0.0ms) begin transaction
790
- SQL (0.1ms) INSERT INTO "faalis_permissions" ("model", "permission_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["model", "Faalis::User"], ["permission_type", "create"], ["created_at", "2015-01-20 21:14:34.122779"], ["updated_at", "2015-01-20 21:14:34.122779"]]
791
-  (131.1ms) commit transaction
792
- Faalis::Permission Load (0.2ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'destroy' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::User"]]
793
-  (0.1ms) begin transaction
794
- SQL (0.2ms) INSERT INTO "faalis_permissions" ("model", "permission_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["model", "Faalis::User"], ["permission_type", "destroy"], ["created_at", "2015-01-20 21:14:34.256671"], ["updated_at", "2015-01-20 21:14:34.256671"]]
795
-  (98.9ms) commit transaction
226
+ Faalis::Permission Load (0.3ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'read' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::User"]]
227
+ Faalis::Permission Load (0.2ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'update' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::User"]]
228
+ Faalis::Permission Load (0.1ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'create' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::User"]]
229
+ Faalis::Permission Load (0.2ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'destroy' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::User"]]
796
230
  Faalis::Permission Load (0.1ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'read' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::Group"]]
797
-  (0.1ms) begin transaction
798
- SQL (0.1ms) INSERT INTO "faalis_permissions" ("model", "permission_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["model", "Faalis::Group"], ["permission_type", "read"], ["created_at", "2015-01-20 21:14:34.358390"], ["updated_at", "2015-01-20 21:14:34.358390"]]
799
-  (97.7ms) commit transaction
800
- Faalis::Permission Load (0.1ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'update' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::Group"]]
801
-  (0.1ms) begin transaction
802
- SQL (0.1ms) INSERT INTO "faalis_permissions" ("model", "permission_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["model", "Faalis::Group"], ["permission_type", "update"], ["created_at", "2015-01-20 21:14:34.458648"], ["updated_at", "2015-01-20 21:14:34.458648"]]
803
-  (97.9ms) commit transaction
231
+ Faalis::Permission Load (0.1ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'update' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::Group"]]
804
232
  Faalis::Permission Load (0.1ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'create' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::Group"]]
805
-  (0.1ms) begin transaction
806
- SQL (0.1ms) INSERT INTO "faalis_permissions" ("model", "permission_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["model", "Faalis::Group"], ["permission_type", "create"], ["created_at", "2015-01-20 21:14:34.559152"], ["updated_at", "2015-01-20 21:14:34.559152"]]
807
-  (97.7ms) commit transaction
808
- Faalis::Permission Load (0.1ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'destroy' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::Group"]]
809
-  (0.1ms) begin transaction
810
- SQL (0.1ms) INSERT INTO "faalis_permissions" ("model", "permission_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["model", "Faalis::Group"], ["permission_type", "destroy"], ["created_at", "2015-01-20 21:14:34.659583"], ["updated_at", "2015-01-20 21:14:34.659583"]]
811
-  (322.8ms) commit transaction
233
+ Faalis::Permission Load (0.1ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'destroy' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::Group"]]
812
234
  Faalis::Permission Load (0.1ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'read' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::User"]]
813
235
  Faalis::Permission Load (0.1ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'update' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::User"]]
814
236
  Faalis::Permission Load (0.1ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'create' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::User"]]
@@ -818,86 +240,122 @@ DEPRECATION WARNING: Defining a route where `to` is a controller without an acti
818
240
  Faalis::Permission Load (0.1ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'create' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::Group"]]
819
241
  Faalis::Permission Load (0.1ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'destroy' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::Group"]]
820
242
  DEPRECATION WARNING: Defining a route where `to` is a controller without an action is deprecated. Please change `to: :devise/omniauth_callbacks` to `controller: :devise/omniauth_callbacks`. (called from block in <top (required)> at /home/lxsameer/src/Yellowen/Faalis/config/routes.rb:33)
821
- DEPRECATION WARNING: Defining a route where `to` is a controller without an action is deprecated. Please change `to: :devise/omniauth_callbacks` to `controller: :devise/omniauth_callbacks`. (called from block in <top (required)> at /home/lxsameer/src/Yellowen/Faalis/config/routes.rb:33)
822
-  (131.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
823
-  (0.1ms) select sqlite_version(*)
824
-  (132.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
825
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
826
- Migrating to DeviseCreateFaalisUsers (20131013091000)
243
+ ApplicationModels Load (0.3ms) SELECT "application_models".* FROM "application_models" WHERE "application_models"."model" = ? LIMIT 1 [["model", "Faalis::User"]]
244
+ ApplicationModels Load (0.1ms) SELECT "application_models".* FROM "application_models" WHERE "application_models"."model" = ? LIMIT 1 [["model", "Faalis::Group"]]
245
+ ApplicationModels Load (0.1ms) SELECT "application_models".* FROM "application_models" WHERE "application_models"."model" = ? LIMIT 1 [["model", "Faalis::Permission"]]
246
+ ApplicationModels Load (0.1ms) SELECT "application_models".* FROM "application_models"
247
+ Faalis::Permission Load (0.2ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'read' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::User"]]
248
+ Faalis::Permission Load (0.3ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'update' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::User"]]
249
+ Faalis::Permission Load (0.2ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'create' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::User"]]
250
+ Faalis::Permission Load (0.1ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'destroy' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::User"]]
251
+ Faalis::Permission Load (0.1ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'read' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::Group"]]
252
+ Faalis::Permission Load (0.1ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'update' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::Group"]]
253
+ Faalis::Permission Load (0.1ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'create' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::Group"]]
254
+ Faalis::Permission Load (0.1ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'destroy' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::Group"]]
255
+ Faalis::Permission Load (0.1ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'read' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::User"]]
256
+ Faalis::Permission Load (0.1ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'update' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::User"]]
257
+ Faalis::Permission Load (0.1ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'create' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::User"]]
258
+ Faalis::Permission Load (0.1ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'destroy' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::User"]]
259
+ Faalis::Permission Load (0.1ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'read' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::Group"]]
260
+ Faalis::Permission Load (0.2ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'update' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::Group"]]
261
+ Faalis::Permission Load (0.1ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'create' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::Group"]]
262
+ Faalis::Permission Load (0.1ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'destroy' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::Group"]]
827
263
   (0.1ms) begin transaction
828
- DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/lxsameer/src/Yellowen/Faalis/db/migrate/20131013091000_devise_create_faalis_users.rb:53)
829
-  (0.4ms) CREATE TABLE "faalis_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "first_name" varchar, "last_name" varchar, "group_id" integer DEFAULT 2, "failed_attempts" integer DEFAULT 0, "unlock_token" varchar, "locked_at" datetime, "created_at" datetime, "updated_at" datetime)
830
-  (0.2ms) CREATE UNIQUE INDEX "index_faalis_users_on_email" ON "faalis_users" ("email")
831
-  (0.1ms) SELECT sql
264
+ Faalis::Group Exists (0.2ms) SELECT 1 AS one FROM "faalis_groups" WHERE "faalis_groups"."role" = 'admin' LIMIT 1
265
+ SQL (0.3ms) INSERT INTO "faalis_groups" ("name", "role", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Admin"], ["role", "admin"], ["created_at", "2015-01-25 00:06:33.931242"], ["updated_at", "2015-01-25 00:06:33.931242"]]
266
+  (174.6ms) commit transaction
267
+  (0.2ms) begin transaction
268
+ Faalis::Group Exists (0.2ms) SELECT 1 AS one FROM "faalis_groups" WHERE "faalis_groups"."role" = 'guest' LIMIT 1
269
+  (0.1ms) rollback transaction
270
+ Faalis::Permission Load (0.3ms) SELECT "faalis_permissions".* FROM "faalis_permissions"
271
+ Faalis::Permission Load (0.3ms) SELECT "faalis_permissions".* FROM "faalis_permissions" INNER JOIN "faalis_groups_permissions" ON "faalis_permissions"."id" = "faalis_groups_permissions"."permission_id" WHERE "faalis_groups_permissions"."group_id" = ? [["group_id", 2]]
272
+  (0.1ms) begin transaction
273
+ SQL (0.4ms) INSERT INTO "faalis_groups_permissions" ("group_id", "permission_id") VALUES (?, ?) [["group_id", 2], ["permission_id", 1]]
274
+ SQL (0.1ms) INSERT INTO "faalis_groups_permissions" ("group_id", "permission_id") VALUES (?, ?) [["group_id", 2], ["permission_id", 2]]
275
+ SQL (0.1ms) INSERT INTO "faalis_groups_permissions" ("group_id", "permission_id") VALUES (?, ?) [["group_id", 2], ["permission_id", 3]]
276
+ SQL (0.1ms) INSERT INTO "faalis_groups_permissions" ("group_id", "permission_id") VALUES (?, ?) [["group_id", 2], ["permission_id", 4]]
277
+ SQL (0.1ms) INSERT INTO "faalis_groups_permissions" ("group_id", "permission_id") VALUES (?, ?) [["group_id", 2], ["permission_id", 5]]
278
+ SQL (0.1ms) INSERT INTO "faalis_groups_permissions" ("group_id", "permission_id") VALUES (?, ?) [["group_id", 2], ["permission_id", 6]]
279
+ SQL (0.1ms) INSERT INTO "faalis_groups_permissions" ("group_id", "permission_id") VALUES (?, ?) [["group_id", 2], ["permission_id", 7]]
280
+ SQL (0.1ms) INSERT INTO "faalis_groups_permissions" ("group_id", "permission_id") VALUES (?, ?) [["group_id", 2], ["permission_id", 8]]
281
+  (289.4ms) commit transaction
282
+  (0.1ms) begin transaction
283
+ Faalis::User Exists (0.2ms) SELECT 1 AS one FROM "faalis_users" WHERE "faalis_users"."email" = 'admin@example.com' LIMIT 1
284
+ Faalis::User Exists (0.1ms) SELECT 1 AS one FROM "faalis_users" WHERE "faalis_users"."email" = 'admin@example.com' LIMIT 1
285
+ Faalis::Group Load (0.2ms) SELECT "faalis_groups".* FROM "faalis_groups" WHERE "faalis_groups"."name" = ? AND "faalis_groups"."role" = ? LIMIT 1 [["name", "Guest"], ["role", "guest"]]
286
+ SQL (0.4ms) INSERT INTO "faalis_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "admin@example.com"], ["encrypted_password", "$2a$10$RtACHN4OKhr..CA1pHoX8eZio6yU7IVWhlDOG1dUTG68BvHSFUrUO"], ["created_at", "2015-01-25 00:06:34.862191"], ["updated_at", "2015-01-25 00:06:34.862191"]]
287
+ SQL (0.1ms) INSERT INTO "faalis_groups_users" ("group_id", "user_id") VALUES (?, ?) [["group_id", 1], ["user_id", 2]]
288
+  (124.8ms) commit transaction
289
+  (0.2ms) begin transaction
290
+ SQL (0.4ms) INSERT INTO "faalis_groups_users" ("user_id", "group_id") VALUES (?, ?) [["user_id", 2], ["group_id", 2]]
291
+  (127.1ms) commit transaction
292
+  (0.1ms) begin transaction
293
+ Faalis::User Exists (0.2ms) SELECT 1 AS one FROM "faalis_users" WHERE "faalis_users"."email" = 'user@example.com' LIMIT 1
294
+ Faalis::User Exists (0.1ms) SELECT 1 AS one FROM "faalis_users" WHERE "faalis_users"."email" = 'user@example.com' LIMIT 1
295
+ Faalis::Group Load (0.1ms) SELECT "faalis_groups".* FROM "faalis_groups" WHERE "faalis_groups"."name" = ? AND "faalis_groups"."role" = ? LIMIT 1 [["name", "Guest"], ["role", "guest"]]
296
+ SQL (0.3ms) INSERT INTO "faalis_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user@example.com"], ["encrypted_password", "$2a$10$cynH0zCJ96mYoqZMhfj.r.ZmA9UOKSRjSAwzURLy.zZ6Jp1HXAtj6"], ["created_at", "2015-01-25 00:06:35.219196"], ["updated_at", "2015-01-25 00:06:35.219196"]]
297
+ SQL (0.1ms) INSERT INTO "faalis_groups_users" ("group_id", "user_id") VALUES (?, ?) [["group_id", 1], ["user_id", 3]]
298
+  (115.8ms) commit transaction
299
+  (0.2ms) begin transaction
300
+ Faalis::Group Exists (0.3ms) SELECT 1 AS one FROM "faalis_groups" WHERE "faalis_groups"."role" = 'guest' LIMIT 1
301
+  (0.1ms) rollback transaction
302
+ DEPRECATION WARNING: Defining a route where `to` is a controller without an action is deprecated. Please change `to: :devise/omniauth_callbacks` to `controller: :devise/omniauth_callbacks`. (called from block in <top (required)> at /home/lxsameer/src/Yellowen/Faalis/config/routes.rb:33)
303
+  (130.7ms) CREATE TABLE "application_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model" varchar, "created_at" datetime, "updated_at" datetime) 
304
+  (122.7ms) CREATE TABLE "faalis_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "role" varchar, "created_at" datetime, "updated_at" datetime)
305
+  (132.0ms) CREATE TABLE "faalis_groups_permissions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "permission_id" integer, "group_id" integer) 
306
+  (131.9ms) CREATE TABLE "faalis_groups_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "group_id" integer)
307
+  (123.9ms) CREATE TABLE "faalis_permissions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model" varchar, "permission_type" varchar, "created_at" datetime, "updated_at" datetime) 
308
+  (168.0ms) CREATE TABLE "faalis_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "first_name" varchar, "last_name" varchar, "group_id" integer DEFAULT 2, "failed_attempts" integer DEFAULT 0, "unlock_token" varchar, "locked_at" datetime, "created_at" datetime, "updated_at" datetime)
309
+  (0.2ms) select sqlite_version(*)
310
+  (124.2ms) CREATE UNIQUE INDEX "index_faalis_users_on_email" ON "faalis_users" ("email")
311
+  (0.3ms)  SELECT sql
832
312
  FROM sqlite_master
833
313
  WHERE name='index_faalis_users_on_email' AND type='index'
834
314
  UNION ALL
835
315
  SELECT sql
836
316
  FROM sqlite_temp_master
837
317
  WHERE name='index_faalis_users_on_email' AND type='index'
838
-
839
-  (0.2ms) CREATE UNIQUE INDEX "index_faalis_users_on_reset_password_token" ON "faalis_users" ("reset_password_token")
840
-  (0.1ms) SELECT sql
318
+ 
319
+  (114.3ms) CREATE UNIQUE INDEX "index_faalis_users_on_reset_password_token" ON "faalis_users" ("reset_password_token")
320
+  (0.2ms)  SELECT sql
841
321
  FROM sqlite_master
842
322
  WHERE name='index_faalis_users_on_reset_password_token' AND type='index'
843
323
  UNION ALL
844
324
  SELECT sql
845
325
  FROM sqlite_temp_master
846
326
  WHERE name='index_faalis_users_on_reset_password_token' AND type='index'
847
-
848
-  (0.1ms)  SELECT sql
327
+ 
328
+  (0.2ms) SELECT sql
849
329
  FROM sqlite_master
850
330
  WHERE name='index_faalis_users_on_email' AND type='index'
851
331
  UNION ALL
852
332
  SELECT sql
853
333
  FROM sqlite_temp_master
854
334
  WHERE name='index_faalis_users_on_email' AND type='index'
855
- 
856
-  (0.1ms) CREATE UNIQUE INDEX "index_faalis_users_on_unlock_token" ON "faalis_users" ("unlock_token")
857
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131013091000"]]
858
-  (131.4ms) commit transaction
859
- Migrating to CreateFaalisGroups (20131020124701)
860
-  (0.1ms) begin transaction
861
- DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/lxsameer/src/Yellowen/Faalis/db/migrate/20131020124701_create_faalis_groups.rb:7)
862
-  (0.3ms) CREATE TABLE "faalis_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "role" varchar, "created_at" datetime, "updated_at" datetime)
863
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131020124701"]]
864
-  (113.2ms) commit transaction
865
- Migrating to CreateFaalisPermissions (20131021170923)
866
-  (0.1ms) begin transaction
867
- DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/lxsameer/src/Yellowen/Faalis/db/migrate/20131021170923_create_faalis_permissions.rb:7)
868
-  (0.3ms) CREATE TABLE "faalis_permissions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model" varchar, "permission_type" varchar, "created_at" datetime, "updated_at" datetime)
869
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131021170923"]]
870
-  (106.6ms) commit transaction
871
- Migrating to AddPermissionsGroupsTable (20131123120422)
872
-  (0.1ms) begin transaction
873
-  (0.3ms) CREATE TABLE "faalis_groups_permissions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "permission_id" integer, "group_id" integer)
874
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131123120422"]]
875
-  (123.0ms) commit transaction
876
- Migrating to AddUsersGroupsTable (20140613120923)
877
-  (0.1ms) begin transaction
878
-  (0.3ms) CREATE TABLE "faalis_groups_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "group_id" integer)
879
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140613120923"]]
880
-  (114.7ms) commit transaction
881
- Migrating to FaalisGroupsUsers (20140617124019)
882
-  (0.1ms) begin transaction
883
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140617124019"]]
884
-  (194.0ms) commit transaction
885
- Migrating to CreateApplicationModels (20150120211313)
886
-  (0.1ms) begin transaction
887
- DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/lxsameer/src/Yellowen/Faalis/spec/dummy/db/migrate/20150120211313_create_application_models.model_discovery_engine.rb:7)
888
-  (0.3ms) CREATE TABLE "application_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model" varchar, "created_at" datetime, "updated_at" datetime) 
889
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150120211313"]]
890
-  (127.4ms) commit transaction
891
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
892
-  (0.1ms)  SELECT sql
335
+
336
+  (130.4ms) CREATE UNIQUE INDEX "index_faalis_users_on_unlock_token" ON "faalis_users" ("unlock_token")
337
+  (128.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
338
+  (131.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
339
+  (0.2ms) SELECT version FROM "schema_migrations"
340
+  (131.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20150121060012')
341
+  (113.2ms) CREATE TABLE "application_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model" varchar, "created_at" datetime, "updated_at" datetime)
342
+  (97.9ms) CREATE TABLE "faalis_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "role" varchar, "created_at" datetime, "updated_at" datetime) 
343
+  (115.0ms) CREATE TABLE "faalis_groups_permissions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "permission_id" integer, "group_id" integer)
344
+  (123.3ms) CREATE TABLE "faalis_groups_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "group_id" integer) 
345
+  (123.1ms) CREATE TABLE "faalis_permissions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model" varchar, "permission_type" varchar, "created_at" datetime, "updated_at" datetime)
346
+  (131.4ms) CREATE TABLE "faalis_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "first_name" varchar, "last_name" varchar, "group_id" integer DEFAULT 2, "failed_attempts" integer DEFAULT 0, "unlock_token" varchar, "locked_at" datetime, "created_at" datetime, "updated_at" datetime) 
347
+  (0.1ms) select sqlite_version(*)
348
+  (123.3ms) CREATE UNIQUE INDEX "index_faalis_users_on_email" ON "faalis_users" ("email")
349
+  (0.3ms) SELECT sql
893
350
  FROM sqlite_master
894
- WHERE name='index_faalis_users_on_unlock_token' AND type='index'
351
+ WHERE name='index_faalis_users_on_email' AND type='index'
895
352
  UNION ALL
896
353
  SELECT sql
897
354
  FROM sqlite_temp_master
898
- WHERE name='index_faalis_users_on_unlock_token' AND type='index'
899
- 
900
-  (0.1ms) SELECT sql
355
+ WHERE name='index_faalis_users_on_email' AND type='index'
356
+
357
+  (114.5ms) CREATE UNIQUE INDEX "index_faalis_users_on_reset_password_token" ON "faalis_users" ("reset_password_token")
358
+  (0.6ms) SELECT sql
901
359
  FROM sqlite_master
902
360
  WHERE name='index_faalis_users_on_reset_password_token' AND type='index'
903
361
  UNION ALL
@@ -905,7 +363,7 @@ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `n
905
363
  FROM sqlite_temp_master
906
364
  WHERE name='index_faalis_users_on_reset_password_token' AND type='index'
907
365
 
908
-  (0.1ms)  SELECT sql
366
+  (0.3ms)  SELECT sql
909
367
  FROM sqlite_master
910
368
  WHERE name='index_faalis_users_on_email' AND type='index'
911
369
  UNION ALL
@@ -913,16 +371,135 @@ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `n
913
371
  FROM sqlite_temp_master
914
372
  WHERE name='index_faalis_users_on_email' AND type='index'
915
373
  
374
+  (112.8ms) CREATE UNIQUE INDEX "index_faalis_users_on_unlock_token" ON "faalis_users" ("unlock_token")
375
+  (131.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
376
+  (115.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
377
+  (0.3ms) SELECT version FROM "schema_migrations"
378
+  (115.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20150121060012')
379
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
916
380
  DEPRECATION WARNING: Defining a route where `to` is a controller without an action is deprecated. Please change `to: :devise/omniauth_callbacks` to `controller: :devise/omniauth_callbacks`. (called from block in <top (required)> at /home/lxsameer/src/Yellowen/Faalis/config/routes.rb:33)
917
-  (118.1ms) CREATE TABLE "application_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model" varchar, "created_at" datetime, "updated_at" datetime) 
918
-  (99.5ms) CREATE TABLE "faalis_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "role" varchar, "created_at" datetime, "updated_at" datetime)
919
-  (99.7ms) CREATE TABLE "faalis_groups_permissions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "permission_id" integer, "group_id" integer) 
920
-  (108.1ms) CREATE TABLE "faalis_groups_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "group_id" integer)
921
-  (158.1ms) CREATE TABLE "faalis_permissions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model" varchar, "permission_type" varchar, "created_at" datetime, "updated_at" datetime) 
922
-  (123.1ms) CREATE TABLE "faalis_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "first_name" varchar, "last_name" varchar, "group_id" integer DEFAULT 2, "failed_attempts" integer DEFAULT 0, "unlock_token" varchar, "locked_at" datetime, "created_at" datetime, "updated_at" datetime)
923
-  (0.1ms) select sqlite_version(*)
924
-  (124.4ms) CREATE UNIQUE INDEX "index_faalis_users_on_email" ON "faalis_users" ("email")
925
-  (0.1ms)  SELECT sql
381
+ ApplicationModels Load (0.3ms) SELECT "application_models".* FROM "application_models" WHERE "application_models"."model" = ? LIMIT 1 [["model", "Faalis::User"]]
382
+  (0.1ms) begin transaction
383
+ SQL (0.3ms) INSERT INTO "application_models" ("model", "created_at", "updated_at") VALUES (?, ?, ?) [["model", "Faalis::User"], ["created_at", "2015-01-25 00:10:13.121761"], ["updated_at", "2015-01-25 00:10:13.121761"]]
384
+  (152.3ms) commit transaction
385
+ ApplicationModels Load (0.2ms) SELECT "application_models".* FROM "application_models" WHERE "application_models"."model" = ? LIMIT 1 [["model", "Faalis::Group"]]
386
+  (0.1ms) begin transaction
387
+ SQL (0.3ms) INSERT INTO "application_models" ("model", "created_at", "updated_at") VALUES (?, ?, ?) [["model", "Faalis::Group"], ["created_at", "2015-01-25 00:10:13.279041"], ["updated_at", "2015-01-25 00:10:13.279041"]]
388
+  (498.4ms) commit transaction
389
+ ApplicationModels Load (0.1ms) SELECT "application_models".* FROM "application_models" WHERE "application_models"."model" = ? LIMIT 1 [["model", "Faalis::Permission"]]
390
+  (0.1ms) begin transaction
391
+ SQL (0.3ms) INSERT INTO "application_models" ("model", "created_at", "updated_at") VALUES (?, ?, ?) [["model", "Faalis::Permission"], ["created_at", "2015-01-25 00:10:13.782652"], ["updated_at", "2015-01-25 00:10:13.782652"]]
392
+  (120.2ms) commit transaction
393
+ ApplicationModels Load (0.4ms) SELECT "application_models".* FROM "application_models"
394
+ Faalis::Permission Load (0.3ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'read' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::User"]]
395
+  (0.1ms) begin transaction
396
+ SQL (0.3ms) INSERT INTO "faalis_permissions" ("model", "permission_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["model", "Faalis::User"], ["permission_type", "read"], ["created_at", "2015-01-25 00:10:13.920999"], ["updated_at", "2015-01-25 00:10:13.920999"]]
397
+  (114.2ms) commit transaction
398
+ Faalis::Permission Load (0.4ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'update' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::User"]]
399
+  (0.1ms) begin transaction
400
+ SQL (0.3ms) INSERT INTO "faalis_permissions" ("model", "permission_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["model", "Faalis::User"], ["permission_type", "update"], ["created_at", "2015-01-25 00:10:14.041166"], ["updated_at", "2015-01-25 00:10:14.041166"]]
401
+  (135.2ms) commit transaction
402
+ Faalis::Permission Load (0.2ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'create' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::User"]]
403
+  (0.1ms) begin transaction
404
+ SQL (0.4ms) INSERT INTO "faalis_permissions" ("model", "permission_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["model", "Faalis::User"], ["permission_type", "create"], ["created_at", "2015-01-25 00:10:14.180628"], ["updated_at", "2015-01-25 00:10:14.180628"]]
405
+  (136.2ms) commit transaction
406
+ Faalis::Permission Load (0.3ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'destroy' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::User"]]
407
+  (0.1ms) begin transaction
408
+ SQL (0.2ms) INSERT INTO "faalis_permissions" ("model", "permission_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["model", "Faalis::User"], ["permission_type", "destroy"], ["created_at", "2015-01-25 00:10:14.322660"], ["updated_at", "2015-01-25 00:10:14.322660"]]
409
+  (135.9ms) commit transaction
410
+ Faalis::Permission Load (0.2ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'read' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::Group"]]
411
+  (0.1ms) begin transaction
412
+ SQL (0.2ms) INSERT INTO "faalis_permissions" ("model", "permission_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["model", "Faalis::Group"], ["permission_type", "read"], ["created_at", "2015-01-25 00:10:14.464221"], ["updated_at", "2015-01-25 00:10:14.464221"]]
413
+  (152.3ms) commit transaction
414
+ Faalis::Permission Load (0.2ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'update' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::Group"]]
415
+  (0.1ms) begin transaction
416
+ SQL (0.2ms) INSERT INTO "faalis_permissions" ("model", "permission_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["model", "Faalis::Group"], ["permission_type", "update"], ["created_at", "2015-01-25 00:10:14.621527"], ["updated_at", "2015-01-25 00:10:14.621527"]]
417
+  (163.0ms) commit transaction
418
+ Faalis::Permission Load (0.2ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'create' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::Group"]]
419
+  (0.2ms) begin transaction
420
+ SQL (0.2ms) INSERT INTO "faalis_permissions" ("model", "permission_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["model", "Faalis::Group"], ["permission_type", "create"], ["created_at", "2015-01-25 00:10:14.789818"], ["updated_at", "2015-01-25 00:10:14.789818"]]
421
+  (119.2ms) commit transaction
422
+ Faalis::Permission Load (0.2ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'destroy' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::Group"]]
423
+  (0.1ms) begin transaction
424
+ SQL (0.3ms) INSERT INTO "faalis_permissions" ("model", "permission_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["model", "Faalis::Group"], ["permission_type", "destroy"], ["created_at", "2015-01-25 00:10:14.913590"], ["updated_at", "2015-01-25 00:10:14.913590"]]
425
+  (119.2ms) commit transaction
426
+ Faalis::Permission Load (0.2ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'read' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::User"]]
427
+ Faalis::Permission Load (0.3ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'update' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::User"]]
428
+ Faalis::Permission Load (0.1ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'create' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::User"]]
429
+ Faalis::Permission Load (0.1ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'destroy' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::User"]]
430
+ Faalis::Permission Load (0.1ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'read' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::Group"]]
431
+ Faalis::Permission Load (0.1ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'update' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::Group"]]
432
+ Faalis::Permission Load (0.1ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'create' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::Group"]]
433
+ Faalis::Permission Load (0.1ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."model" = ? AND "faalis_permissions"."permission_type" = 'destroy' ORDER BY "faalis_permissions"."id" ASC LIMIT 1 [["model", "Faalis::Group"]]
434
+  (0.1ms) begin transaction
435
+ Faalis::Group Exists (0.2ms) SELECT 1 AS one FROM "faalis_groups" WHERE "faalis_groups"."role" = 'admin' LIMIT 1
436
+ SQL (0.2ms) INSERT INTO "faalis_groups" ("name", "role", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Admin"], ["role", "admin"], ["created_at", "2015-01-25 00:10:15.058476"], ["updated_at", "2015-01-25 00:10:15.058476"]]
437
+  (107.5ms) commit transaction
438
+  (0.2ms) begin transaction
439
+ Faalis::Group Exists (0.3ms) SELECT 1 AS one FROM "faalis_groups" WHERE "faalis_groups"."role" = 'guest' LIMIT 1
440
+ SQL (0.3ms) INSERT INTO "faalis_groups" ("name", "role", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Guest"], ["role", "guest"], ["created_at", "2015-01-25 00:10:15.171807"], ["updated_at", "2015-01-25 00:10:15.171807"]]
441
+  (118.0ms) commit transaction
442
+ Faalis::Permission Load (0.2ms) SELECT "faalis_permissions".* FROM "faalis_permissions"
443
+ Faalis::Permission Load (0.3ms) SELECT "faalis_permissions".* FROM "faalis_permissions" INNER JOIN "faalis_groups_permissions" ON "faalis_permissions"."id" = "faalis_groups_permissions"."permission_id" WHERE "faalis_groups_permissions"."group_id" = ? [["group_id", 1]]
444
+  (0.1ms) begin transaction
445
+ SQL (0.3ms) INSERT INTO "faalis_groups_permissions" ("group_id", "permission_id") VALUES (?, ?) [["group_id", 1], ["permission_id", 1]]
446
+ SQL (0.1ms) INSERT INTO "faalis_groups_permissions" ("group_id", "permission_id") VALUES (?, ?) [["group_id", 1], ["permission_id", 2]]
447
+ SQL (0.1ms) INSERT INTO "faalis_groups_permissions" ("group_id", "permission_id") VALUES (?, ?) [["group_id", 1], ["permission_id", 3]]
448
+ SQL (0.1ms) INSERT INTO "faalis_groups_permissions" ("group_id", "permission_id") VALUES (?, ?) [["group_id", 1], ["permission_id", 4]]
449
+ SQL (0.1ms) INSERT INTO "faalis_groups_permissions" ("group_id", "permission_id") VALUES (?, ?) [["group_id", 1], ["permission_id", 5]]
450
+ SQL (0.1ms) INSERT INTO "faalis_groups_permissions" ("group_id", "permission_id") VALUES (?, ?) [["group_id", 1], ["permission_id", 6]]
451
+ SQL (0.1ms) INSERT INTO "faalis_groups_permissions" ("group_id", "permission_id") VALUES (?, ?) [["group_id", 1], ["permission_id", 7]]
452
+ SQL (0.1ms) INSERT INTO "faalis_groups_permissions" ("group_id", "permission_id") VALUES (?, ?) [["group_id", 1], ["permission_id", 8]]
453
+  (119.4ms) commit transaction
454
+  (0.1ms) begin transaction
455
+ Faalis::User Exists (0.2ms) SELECT 1 AS one FROM "faalis_users" WHERE "faalis_users"."email" = 'admin@example.com' LIMIT 1
456
+ Faalis::User Exists (0.1ms) SELECT 1 AS one FROM "faalis_users" WHERE "faalis_users"."email" = 'admin@example.com' LIMIT 1
457
+ Faalis::Group Load (0.2ms) SELECT "faalis_groups".* FROM "faalis_groups" WHERE "faalis_groups"."name" = ? AND "faalis_groups"."role" = ? LIMIT 1 [["name", "Guest"], ["role", "guest"]]
458
+ SQL (0.3ms) INSERT INTO "faalis_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "admin@example.com"], ["encrypted_password", "$2a$10$u79NjCPqLsKXPciGn4JZmuKTC1cCKCb3nqk2CzWlQVTnVE6LYUCf."], ["created_at", "2015-01-25 00:10:15.554490"], ["updated_at", "2015-01-25 00:10:15.554490"]]
459
+ SQL (0.1ms) INSERT INTO "faalis_groups_users" ("group_id", "user_id") VALUES (?, ?) [["group_id", 2], ["user_id", 1]]
460
+  (129.5ms) commit transaction
461
+  (0.1ms) begin transaction
462
+ SQL (0.4ms) INSERT INTO "faalis_groups_users" ("user_id", "group_id") VALUES (?, ?) [["user_id", 1], ["group_id", 1]]
463
+  (135.0ms) commit transaction
464
+  (0.1ms) begin transaction
465
+ Faalis::User Exists (0.2ms) SELECT 1 AS one FROM "faalis_users" WHERE "faalis_users"."email" = 'user@example.com' LIMIT 1
466
+ Faalis::User Exists (0.1ms) SELECT 1 AS one FROM "faalis_users" WHERE "faalis_users"."email" = 'user@example.com' LIMIT 1
467
+ Faalis::Group Load (0.1ms) SELECT "faalis_groups".* FROM "faalis_groups" WHERE "faalis_groups"."name" = ? AND "faalis_groups"."role" = ? LIMIT 1 [["name", "Guest"], ["role", "guest"]]
468
+ SQL (0.2ms) INSERT INTO "faalis_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user@example.com"], ["encrypted_password", "$2a$10$Rh4V0Ar1ymU3QjzlRfMSHOUL5wK0p.LefDK4RA1AxfJeM4x7c2HyG"], ["created_at", "2015-01-25 00:10:15.922471"], ["updated_at", "2015-01-25 00:10:15.922471"]]
469
+ SQL (0.1ms) INSERT INTO "faalis_groups_users" ("group_id", "user_id") VALUES (?, ?) [["group_id", 2], ["user_id", 2]]
470
+  (133.9ms) commit transaction
471
+  (0.1ms) begin transaction
472
+ SQL (0.3ms) INSERT INTO "faalis_groups_users" ("user_id", "group_id") VALUES (?, ?) [["user_id", 2], ["group_id", 2]]
473
+  (135.6ms) commit transaction
474
+  (0.1ms) begin transaction
475
+  (0.3ms) commit transaction
476
+  (0.1ms) begin transaction
477
+  (0.1ms) commit transaction
478
+  (0.3ms) SELECT COUNT(*) FROM "faalis_users"
479
+ Faalis::User Load (0.4ms) SELECT "faalis_users".* FROM "faalis_users" ORDER BY "faalis_users"."id" ASC LIMIT 1
480
+  (0.3ms) SELECT COUNT(DISTINCT "faalis_groups"."id") FROM "faalis_groups" LEFT OUTER JOIN "faalis_groups_permissions" ON "faalis_groups_permissions"."group_id" = "faalis_groups"."id" LEFT OUTER JOIN "faalis_permissions" ON "faalis_permissions"."id" = "faalis_groups_permissions"."permission_id" INNER JOIN "faalis_groups_users" ON "faalis_groups"."id" = "faalis_groups_users"."group_id" WHERE "faalis_groups_users"."user_id" = ? AND "permissions"."model" = ? AND "permissions"."permission_type" = 'read' [["user_id", 1], ["model", "Faalis::Group"]]
481
+ SQLite3::SQLException: no such column: permissions.model: SELECT COUNT(DISTINCT "faalis_groups"."id") FROM "faalis_groups" LEFT OUTER JOIN "faalis_groups_permissions" ON "faalis_groups_permissions"."group_id" = "faalis_groups"."id" LEFT OUTER JOIN "faalis_permissions" ON "faalis_permissions"."id" = "faalis_groups_permissions"."permission_id" INNER JOIN "faalis_groups_users" ON "faalis_groups"."id" = "faalis_groups_users"."group_id" WHERE "faalis_groups_users"."user_id" = ? AND "permissions"."model" = ? AND "permissions"."permission_type" = 'read'
482
+ Faalis::Group Load (0.4ms) SELECT "faalis_groups".* FROM "faalis_groups" INNER JOIN "faalis_groups_users" ON "faalis_groups"."id" = "faalis_groups_users"."group_id" WHERE "faalis_groups_users"."user_id" = ? [["user_id", 1]]
483
+ Faalis::Group Load (0.2ms) SELECT "faalis_groups".* FROM "faalis_groups" INNER JOIN "faalis_groups_users" ON "faalis_groups"."id" = "faalis_groups_users"."group_id" WHERE "faalis_groups_users"."user_id" = ? [["user_id", 1]]
484
+ HABTM_Permissions Load (0.2ms) SELECT "faalis_groups_permissions".* FROM "faalis_groups_permissions" WHERE "faalis_groups_permissions"."group_id" IN (2, 1)
485
+ Faalis::Permission Load (0.4ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."id" IN (1, 2, 3, 4, 5, 6, 7, 8)
486
+ Faalis::Group Load (0.4ms) SELECT "faalis_groups".* FROM "faalis_groups" INNER JOIN "faalis_groups_users" ON "faalis_groups"."id" = "faalis_groups_users"."group_id" WHERE "faalis_groups_users"."user_id" = ? AND (permission.model = 'Faalis::Group') [["user_id", 1]]
487
+ SQLite3::SQLException: no such column: permission.model: SELECT "faalis_groups".* FROM "faalis_groups" INNER JOIN "faalis_groups_users" ON "faalis_groups"."id" = "faalis_groups_users"."group_id" WHERE "faalis_groups_users"."user_id" = ? AND (permission.model = 'Faalis::Group')
488
+ Faalis::Group Load (0.2ms) SELECT "faalis_groups".* FROM "faalis_groups" INNER JOIN "faalis_groups_users" ON "faalis_groups"."id" = "faalis_groups_users"."group_id" WHERE "faalis_groups_users"."user_id" = ? [["user_id", 1]]
489
+ HABTM_Permissions Load (0.3ms) SELECT "faalis_groups_permissions".* FROM "faalis_groups_permissions" WHERE "faalis_groups_permissions"."group_id" IN (2, 1)
490
+ Faalis::Permission Load (0.3ms) SELECT "faalis_permissions".* FROM "faalis_permissions" WHERE "faalis_permissions"."id" IN (1, 2, 3, 4, 5, 6, 7, 8)
491
+ SQL (0.5ms) SELECT "faalis_groups"."id" AS t0_r0, "faalis_groups"."name" AS t0_r1, "faalis_groups"."role" AS t0_r2, "faalis_groups"."created_at" AS t0_r3, "faalis_groups"."updated_at" AS t0_r4, "faalis_permissions"."id" AS t1_r0, "faalis_permissions"."model" AS t1_r1, "faalis_permissions"."permission_type" AS t1_r2, "faalis_permissions"."created_at" AS t1_r3, "faalis_permissions"."updated_at" AS t1_r4 FROM "faalis_groups" LEFT OUTER JOIN "faalis_groups_permissions" ON "faalis_groups_permissions"."group_id" = "faalis_groups"."id" LEFT OUTER JOIN "faalis_permissions" ON "faalis_permissions"."id" = "faalis_groups_permissions"."permission_id" INNER JOIN "faalis_groups_users" ON "faalis_groups"."id" = "faalis_groups_users"."group_id" WHERE "faalis_groups_users"."user_id" = ? [["user_id", 1]]
492
+ SQL (0.6ms) SELECT "faalis_groups"."id" AS t0_r0, "faalis_groups"."name" AS t0_r1, "faalis_groups"."role" AS t0_r2, "faalis_groups"."created_at" AS t0_r3, "faalis_groups"."updated_at" AS t0_r4, "faalis_permissions"."id" AS t1_r0, "faalis_permissions"."model" AS t1_r1, "faalis_permissions"."permission_type" AS t1_r2, "faalis_permissions"."created_at" AS t1_r3, "faalis_permissions"."updated_at" AS t1_r4 FROM "faalis_groups" LEFT OUTER JOIN "faalis_groups_permissions" ON "faalis_groups_permissions"."group_id" = "faalis_groups"."id" LEFT OUTER JOIN "faalis_permissions" ON "faalis_permissions"."id" = "faalis_groups_permissions"."permission_id" INNER JOIN "faalis_groups_users" ON "faalis_groups"."id" = "faalis_groups_users"."group_id" WHERE "faalis_groups_users"."user_id" = ? AND (faalis_permissions.model = 'Faalis::Group') [["user_id", 1]]
493
+ DEPRECATION WARNING: Defining a route where `to` is a controller without an action is deprecated. Please change `to: :devise/omniauth_callbacks` to `controller: :devise/omniauth_callbacks`. (called from block in <top (required)> at /home/lxsameer/src/Yellowen/Faalis/config/routes.rb:33)
494
+  (125.0ms) CREATE TABLE "application_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model" varchar, "created_at" datetime, "updated_at" datetime) 
495
+  (132.7ms) CREATE TABLE "faalis_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "role" varchar, "created_at" datetime, "updated_at" datetime)
496
+  (123.8ms) CREATE TABLE "faalis_groups_permissions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "permission_id" integer, "group_id" integer) 
497
+  (123.5ms) CREATE TABLE "faalis_groups_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "group_id" integer)
498
+  (164.3ms) CREATE TABLE "faalis_permissions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model" varchar, "permission_type" varchar, "created_at" datetime, "updated_at" datetime) 
499
+  (201.5ms) CREATE TABLE "faalis_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "first_name" varchar, "last_name" varchar, "group_id" integer DEFAULT 2, "failed_attempts" integer DEFAULT 0, "unlock_token" varchar, "locked_at" datetime, "created_at" datetime, "updated_at" datetime)
500
+  (0.2ms) select sqlite_version(*)
501
+  (114.5ms) CREATE UNIQUE INDEX "index_faalis_users_on_email" ON "faalis_users" ("email")
502
+  (0.2ms)  SELECT sql
926
503
  FROM sqlite_master
927
504
  WHERE name='index_faalis_users_on_email' AND type='index'
928
505
  UNION ALL
@@ -930,8 +507,8 @@ DEPRECATION WARNING: Defining a route where `to` is a controller without an acti
930
507
  FROM sqlite_temp_master
931
508
  WHERE name='index_faalis_users_on_email' AND type='index'
932
509
  
933
-  (116.1ms) CREATE UNIQUE INDEX "index_faalis_users_on_reset_password_token" ON "faalis_users" ("reset_password_token")
934
-  (0.1ms)  SELECT sql
510
+  (130.9ms) CREATE UNIQUE INDEX "index_faalis_users_on_reset_password_token" ON "faalis_users" ("reset_password_token")
511
+  (0.2ms)  SELECT sql
935
512
  FROM sqlite_master
936
513
  WHERE name='index_faalis_users_on_reset_password_token' AND type='index'
937
514
  UNION ALL
@@ -939,7 +516,7 @@ DEPRECATION WARNING: Defining a route where `to` is a controller without an acti
939
516
  FROM sqlite_temp_master
940
517
  WHERE name='index_faalis_users_on_reset_password_token' AND type='index'
941
518
  
942
-  (0.1ms) SELECT sql
519
+  (0.2ms) SELECT sql
943
520
  FROM sqlite_master
944
521
  WHERE name='index_faalis_users_on_email' AND type='index'
945
522
  UNION ALL
@@ -947,15 +524,21 @@ DEPRECATION WARNING: Defining a route where `to` is a controller without an acti
947
524
  FROM sqlite_temp_master
948
525
  WHERE name='index_faalis_users_on_email' AND type='index'
949
526
 
950
-  (115.9ms) CREATE UNIQUE INDEX "index_faalis_users_on_unlock_token" ON "faalis_users" ("unlock_token")
951
-  (106.4ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
952
-  (99.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
953
-  (0.1ms) SELECT version FROM "schema_migrations"
954
-  (108.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150120211313')
955
-  (108.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140617124019')
956
-  (158.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140613120923')
957
-  (108.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20131021170923')
958
-  (133.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20131123120422')
959
-  (133.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20131020124701')
960
-  (125.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20131013091000')
527
+  (147.2ms) CREATE UNIQUE INDEX "index_faalis_users_on_unlock_token" ON "faalis_users" ("unlock_token")
528
+  (128.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
529
+  (148.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
530
+  (0.2ms) SELECT version FROM "schema_migrations"
531
+  (133.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150121060012')
532
+  (132.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20131020124701')
533
+  (132.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20131021170923')
534
+  (132.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20131123120422')
535
+  (132.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140613120923')
536
+  (132.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20131013091000')
961
537
  DEPRECATION WARNING: Defining a route where `to` is a controller without an action is deprecated. Please change `to: :devise/omniauth_callbacks` to `controller: :devise/omniauth_callbacks`. (called from block in <top (required)> at /home/lxsameer/src/Yellowen/Faalis/config/routes.rb:33)
538
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
539
+ Migrating to DeviseCreateFaalisUsers (20131013091000)
540
+  (0.1ms) begin transaction
541
+ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/lxsameer/src/Yellowen/Faalis/db/migrate/20131013091000_devise_create_faalis_users.rb:53)
542
+  (0.3ms) CREATE TABLE "faalis_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "first_name" varchar, "last_name" varchar, "group_id" integer DEFAULT 2, "failed_attempts" integer DEFAULT 0, "unlock_token" varchar, "locked_at" datetime, "created_at" datetime, "updated_at" datetime) 
543
+ SQLite3::SQLException: table "faalis_users" already exists: CREATE TABLE "faalis_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "first_name" varchar, "last_name" varchar, "group_id" integer DEFAULT 2, "failed_attempts" integer DEFAULT 0, "unlock_token" varchar, "locked_at" datetime, "created_at" datetime, "updated_at" datetime)
544
+  (0.1ms) rollback transaction