beerify 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (138) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +11 -0
  4. data/Rakefile +34 -0
  5. data/app/assets/fonts/beerify/glyphicons-halflings-regular.eot +0 -0
  6. data/app/assets/fonts/beerify/glyphicons-halflings-regular.svg +228 -0
  7. data/app/assets/fonts/beerify/glyphicons-halflings-regular.ttf +0 -0
  8. data/app/assets/fonts/beerify/glyphicons-halflings-regular.woff +0 -0
  9. data/app/assets/javascripts/beerify/application.js +3 -0
  10. data/app/assets/javascripts/beerify/bootstrap.js +1991 -0
  11. data/app/assets/stylesheets/beerify/application.css +3 -0
  12. data/app/assets/stylesheets/beerify/bootstrap.css +5909 -0
  13. data/app/controllers/application_controller.rb +2 -0
  14. data/app/controllers/contacts_controller.rb +21 -0
  15. data/app/helpers/application_helper.rb +2 -0
  16. data/app/helpers/contacts_helper.rb +2 -0
  17. data/app/models/ability.rb +28 -0
  18. data/app/models/catalog.rb +11 -0
  19. data/app/models/ckeditor/asset.rb +7 -0
  20. data/app/models/ckeditor/attachment_file.rb +7 -0
  21. data/app/models/ckeditor/picture.rb +7 -0
  22. data/app/models/contact.rb +8 -0
  23. data/app/models/news.rb +11 -0
  24. data/app/models/photo.rb +5 -0
  25. data/app/models/product.rb +12 -0
  26. data/app/models/settings.rb +10 -0
  27. data/app/models/user.rb +10 -0
  28. data/app/models/users/admin.rb +4 -0
  29. data/app/models/users/customer.rb +5 -0
  30. data/app/models/users/sudoer.rb +4 -0
  31. data/app/uploaders/ckeditor_attachment_file_uploader.rb +35 -0
  32. data/app/uploaders/ckeditor_picture_uploader.rb +46 -0
  33. data/app/uploaders/photo_uploader.rb +22 -0
  34. data/app/views/contacts/_form.html.slim +5 -0
  35. data/app/views/contacts/new.html.slim +2 -0
  36. data/app/views/devise/confirmations/new.html.erb +14 -0
  37. data/app/views/devise/mailer/confirmation_instructions.html.erb +3 -0
  38. data/app/views/devise/mailer/reset_password_instructions.html.erb +5 -0
  39. data/app/views/devise/mailer/unlock_instructions.html.erb +4 -0
  40. data/app/views/devise/passwords/edit.html.erb +16 -0
  41. data/app/views/devise/passwords/new.html.erb +14 -0
  42. data/app/views/devise/registrations/edit.html.erb +20 -0
  43. data/app/views/devise/registrations/new.html.erb +16 -0
  44. data/app/views/devise/sessions/new.html.erb +14 -0
  45. data/app/views/devise/shared/_links.erb +25 -0
  46. data/app/views/devise/unlocks/new.html.erb +14 -0
  47. data/app/views/layouts/beerify/application.html.erb +14 -0
  48. data/config/initializers/ckeditor.rb +21 -0
  49. data/config/initializers/devise.rb +254 -0
  50. data/config/initializers/kaminari.rb +3 -0
  51. data/config/initializers/rails_admin.rb +5 -0
  52. data/config/initializers/rails_admin/news_admin.rb +19 -0
  53. data/config/initializers/rails_admin/user_admin.rb +71 -0
  54. data/config/initializers/simple_form.rb +142 -0
  55. data/config/initializers/simple_form_bootstrap.rb +76 -0
  56. data/config/locales/attributes.en.yml +57 -0
  57. data/config/locales/attributes.fr.yml +57 -0
  58. data/config/locales/devise.en.yml +59 -0
  59. data/config/locales/devise.fr.yml +78 -0
  60. data/config/locales/devise.views.en.yml +59 -0
  61. data/config/locales/devise.views.fr.yml +51 -0
  62. data/config/locales/fr.yml +220 -0
  63. data/config/locales/main.en.yml +5 -0
  64. data/config/locales/main.fr.yml +5 -0
  65. data/config/locales/models.en.yml +30 -0
  66. data/config/locales/models.fr.yml +30 -0
  67. data/config/locales/rails_admin.fr.yml +129 -0
  68. data/config/locales/simple_form.en.yml +26 -0
  69. data/config/routes.rb +8 -0
  70. data/config/settings/beerify/development.yml +2 -0
  71. data/config/settings/beerify/production.yml +2 -0
  72. data/config/settings/beerify/settings.yml +1 -0
  73. data/db/migrate/20130805210910_create_users.rb +12 -0
  74. data/db/migrate/20130805212414_add_devise_to_users.rb +34 -0
  75. data/db/migrate/20130819142757_create_catalogs.rb +15 -0
  76. data/db/migrate/20130826095103_create_photos.rb +12 -0
  77. data/db/migrate/20130902160901_create_products.rb +16 -0
  78. data/db/migrate/20130902162315_add_photos_to_product.rb +6 -0
  79. data/db/migrate/20130903083519_create_contacts.rb +11 -0
  80. data/db/migrate/20130903130542_create_news.rb +17 -0
  81. data/db/migrate/20130904000525_create_ckeditor_assets.rb +23 -0
  82. data/db/migrate/20130918132647_add_highlight_to_products.rb +5 -0
  83. data/lib/beerify.rb +4 -0
  84. data/lib/beerify/engine.rb +28 -0
  85. data/lib/beerify/version.rb +3 -0
  86. data/lib/tasks/populate.rake +66 -0
  87. data/spec/beerify/models/catalog_spec.rb +9 -0
  88. data/spec/beerify/models/contact_spec.rb +6 -0
  89. data/spec/beerify/models/news_spec.rb +7 -0
  90. data/spec/beerify/models/photo_spec.rb +5 -0
  91. data/spec/beerify/models/product_spec.rb +8 -0
  92. data/spec/beerify/models/user_spec.rb +4 -0
  93. data/spec/beerify/models/users/admin_spec.rb +5 -0
  94. data/spec/beerify/models/users/customer_spec.rb +5 -0
  95. data/spec/dummy/README.rdoc +28 -0
  96. data/spec/dummy/Rakefile +6 -0
  97. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  98. data/spec/dummy/app/assets/stylesheets/application.css +13 -0
  99. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  100. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  101. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  102. data/spec/dummy/bin/bundle +3 -0
  103. data/spec/dummy/bin/rails +4 -0
  104. data/spec/dummy/bin/rake +4 -0
  105. data/spec/dummy/config.ru +4 -0
  106. data/spec/dummy/config/application.rb +23 -0
  107. data/spec/dummy/config/boot.rb +5 -0
  108. data/spec/dummy/config/database.yml +11 -0
  109. data/spec/dummy/config/environment.rb +5 -0
  110. data/spec/dummy/config/environments/development.rb +29 -0
  111. data/spec/dummy/config/environments/production.rb +80 -0
  112. data/spec/dummy/config/environments/test.rb +36 -0
  113. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  114. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  115. data/spec/dummy/config/initializers/inflections.rb +16 -0
  116. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  117. data/spec/dummy/config/initializers/secret_token.rb +12 -0
  118. data/spec/dummy/config/initializers/session_store.rb +3 -0
  119. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  120. data/spec/dummy/config/locales/en.yml +23 -0
  121. data/spec/dummy/config/routes.rb +56 -0
  122. data/spec/dummy/db/migrate/20130904085929_create_users.beerify.rb +13 -0
  123. data/spec/dummy/db/migrate/20130904085930_add_devise_to_users.beerify.rb +35 -0
  124. data/spec/dummy/db/migrate/20130904085931_create_catalogs.beerify.rb +16 -0
  125. data/spec/dummy/db/migrate/20130904085932_create_photos.beerify.rb +13 -0
  126. data/spec/dummy/db/migrate/20130904085933_create_products.beerify.rb +17 -0
  127. data/spec/dummy/db/migrate/20130904085934_add_photos_to_product.beerify.rb +7 -0
  128. data/spec/dummy/db/migrate/20130904085935_create_contacts.beerify.rb +12 -0
  129. data/spec/dummy/db/migrate/20130906090417_create_news.beerify.rb +18 -0
  130. data/spec/dummy/db/migrate/20130906090418_create_ckeditor_assets.beerify.rb +24 -0
  131. data/spec/dummy/db/migrate/20130918132952_add_highlight_to_products.beerify.rb +6 -0
  132. data/spec/dummy/db/schema.rb +116 -0
  133. data/spec/dummy/public/404.html +58 -0
  134. data/spec/dummy/public/422.html +58 -0
  135. data/spec/dummy/public/500.html +57 -0
  136. data/spec/dummy/public/favicon.ico +0 -0
  137. data/spec/spec_helper.rb +19 -0
  138. metadata +641 -0
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
+ # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
+
6
+ # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
+ # Rails.backtrace_cleaner.remove_silencers!
@@ -0,0 +1,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Configure sensitive parameters which will be filtered from the log file.
4
+ Rails.application.config.filter_parameters += [:password]
@@ -0,0 +1,16 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format. Inflections
4
+ # are locale specific, and you may define rules for as many different
5
+ # locales as you wish. All of these examples are active by default:
6
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
7
+ # inflect.plural /^(ox)$/i, '\1en'
8
+ # inflect.singular /^(ox)en/i, '\1'
9
+ # inflect.irregular 'person', 'people'
10
+ # inflect.uncountable %w( fish sheep )
11
+ # end
12
+
13
+ # These inflection rules are supported but not enabled by default:
14
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
15
+ # inflect.acronym 'RESTful'
16
+ # end
@@ -0,0 +1,5 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
5
+ # Mime::Type.register_alias "text/html", :iphone
@@ -0,0 +1,12 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key is used for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+
6
+ # Make sure the secret is at least 30 characters and all random,
7
+ # no regular words or you'll be exposed to dictionary attacks.
8
+ # You can use `rake secret` to generate a secure secret key.
9
+
10
+ # Make sure your secret_key_base is kept private
11
+ # if you're sharing your code publicly.
12
+ Dummy::Application.config.secret_key_base = 'b7319c455a4db4c8ca5b1558f573635501d818cd0a272eeb82b015946a9762ce61a38b144f79d8e882952b33de9a9208e36dcccb0b98d7b1a75a2a4292d1a8b9'
@@ -0,0 +1,3 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
@@ -0,0 +1,14 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ ActiveSupport.on_load(:action_controller) do
8
+ wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
9
+ end
10
+
11
+ # To enable root element in JSON for ActiveRecord objects.
12
+ # ActiveSupport.on_load(:active_record) do
13
+ # self.include_root_in_json = true
14
+ # end
@@ -0,0 +1,23 @@
1
+ # Files in the config/locales directory are used for internationalization
2
+ # and are automatically loaded by Rails. If you want to use locales other
3
+ # than English, add the necessary files in this directory.
4
+ #
5
+ # To use the locales, use `I18n.t`:
6
+ #
7
+ # I18n.t 'hello'
8
+ #
9
+ # In views, this is aliased to just `t`:
10
+ #
11
+ # <%= t('hello') %>
12
+ #
13
+ # To use a different locale, set it with `I18n.locale`:
14
+ #
15
+ # I18n.locale = :es
16
+ #
17
+ # This would use the information in config/locales/es.yml.
18
+ #
19
+ # To learn more, please read the Rails Internationalization guide
20
+ # available at http://guides.rubyonrails.org/i18n.html.
21
+
22
+ en:
23
+ hello: "Hello world"
@@ -0,0 +1,56 @@
1
+ Dummy::Application.routes.draw do
2
+ # The priority is based upon order of creation: first created -> highest priority.
3
+ # See how all your routes lay out with "rake routes".
4
+
5
+ # You can have the root of your site routed with "root"
6
+ # root 'welcome#index'
7
+
8
+ # Example of regular route:
9
+ # get 'products/:id' => 'catalog#view'
10
+
11
+ # Example of named route that can be invoked with purchase_url(id: product.id)
12
+ # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
13
+
14
+ # Example resource route (maps HTTP verbs to controller actions automatically):
15
+ # resources :products
16
+
17
+ # Example resource route with options:
18
+ # resources :products do
19
+ # member do
20
+ # get 'short'
21
+ # post 'toggle'
22
+ # end
23
+ #
24
+ # collection do
25
+ # get 'sold'
26
+ # end
27
+ # end
28
+
29
+ # Example resource route with sub-resources:
30
+ # resources :products do
31
+ # resources :comments, :sales
32
+ # resource :seller
33
+ # end
34
+
35
+ # Example resource route with more complex sub-resources:
36
+ # resources :products do
37
+ # resources :comments
38
+ # resources :sales do
39
+ # get 'recent', on: :collection
40
+ # end
41
+ # end
42
+
43
+ # Example resource route with concerns:
44
+ # concern :toggleable do
45
+ # post 'toggle'
46
+ # end
47
+ # resources :posts, concerns: :toggleable
48
+ # resources :photos, concerns: :toggleable
49
+
50
+ # Example resource route within a namespace:
51
+ # namespace :admin do
52
+ # # Directs /admin/products/* to Admin::ProductsController
53
+ # # (app/controllers/admin/products_controller.rb)
54
+ # resources :products
55
+ # end
56
+ end
@@ -0,0 +1,13 @@
1
+ # This migration comes from beerify (originally 20130805210910)
2
+ class CreateUsers < ActiveRecord::Migration
3
+ def change
4
+ create_table :users do |t|
5
+ t.string :firstname
6
+ t.string :lastname
7
+ t.string :type
8
+ t.string :username
9
+
10
+ t.timestamps
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,35 @@
1
+ # This migration comes from beerify (originally 20130805212414)
2
+ class AddDeviseToUsers < ActiveRecord::Migration
3
+ def self.up
4
+ change_table(:users) do |t|
5
+ ## Database authenticatable
6
+ t.string :email, null: false, default: ""
7
+ t.string :encrypted_password, null: false, default: ""
8
+
9
+ ## Recoverable
10
+ t.string :reset_password_token
11
+ t.datetime :reset_password_sent_at
12
+
13
+ ## Rememberable
14
+ t.datetime :remember_created_at
15
+
16
+ ## Trackable
17
+ t.integer :sign_in_count, default: 0
18
+ t.datetime :current_sign_in_at
19
+ t.datetime :last_sign_in_at
20
+ t.string :current_sign_in_ip
21
+ t.string :last_sign_in_ip
22
+
23
+ ## Token authenticatable
24
+ t.string :authentication_token
25
+ end
26
+
27
+ add_index :users, :email, unique: true
28
+ add_index :users, :reset_password_token, unique: true
29
+ add_index :users, :authentication_token, unique: true
30
+ end
31
+
32
+ def self.down
33
+ raise ActiveRecord::IrreversibleMigration
34
+ end
35
+ end
@@ -0,0 +1,16 @@
1
+ # This migration comes from beerify (originally 20130819142757)
2
+ class CreateCatalogs < ActiveRecord::Migration
3
+ def change
4
+ create_table :catalogs do |t|
5
+ t.references :catalog
6
+ t.string :slug
7
+ t.string :title
8
+ t.text :description
9
+
10
+ t.timestamps
11
+ end
12
+
13
+ add_index :catalogs, :catalog_id
14
+ add_index :catalogs, :slug, unique: true
15
+ end
16
+ end
@@ -0,0 +1,13 @@
1
+ # This migration comes from beerify (originally 20130826095103)
2
+ class CreatePhotos < ActiveRecord::Migration
3
+ def change
4
+ create_table :photos do |t|
5
+ t.integer :priority
6
+ t.string :attachment
7
+ t.string :title
8
+ t.text :description
9
+
10
+ t.timestamps
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,17 @@
1
+ # This migration comes from beerify (originally 20130902160901)
2
+ class CreateProducts < ActiveRecord::Migration
3
+ def change
4
+ create_table :products do |t|
5
+ t.decimal :price
6
+ t.references :catalog
7
+ t.string :title
8
+ t.string :slug
9
+ t.text :description
10
+
11
+ t.timestamps
12
+ end
13
+
14
+ add_index :products, :catalog_id
15
+ add_index :products, :slug, unique: true
16
+ end
17
+ end
@@ -0,0 +1,7 @@
1
+ # This migration comes from beerify (originally 20130902162315)
2
+ class AddPhotosToProduct < ActiveRecord::Migration
3
+ def change
4
+ add_column :photos, :product_id, :integer
5
+ add_index :photos, :product_id
6
+ end
7
+ end
@@ -0,0 +1,12 @@
1
+ # This migration comes from beerify (originally 20130903083519)
2
+ class CreateContacts < ActiveRecord::Migration
3
+ def change
4
+ create_table :contacts do |t|
5
+ t.string :email
6
+ t.string :name
7
+ t.text :content
8
+
9
+ t.timestamps
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,18 @@
1
+ # This migration comes from beerify (originally 20130903130542)
2
+ class CreateNews < ActiveRecord::Migration
3
+ def change
4
+ create_table :news do |t|
5
+ t.datetime :published_on
6
+ t.references :user
7
+ t.string :photo
8
+ t.string :slug
9
+ t.string :title
10
+ t.text :content
11
+
12
+ t.timestamps
13
+ end
14
+
15
+ add_index :news, :user_id
16
+ add_index :news, :slug, unique: true
17
+ end
18
+ end
@@ -0,0 +1,24 @@
1
+ # This migration comes from beerify (originally 20130904000525)
2
+ class CreateCkeditorAssets < ActiveRecord::Migration
3
+ def self.up
4
+ create_table :ckeditor_assets do |t|
5
+ t.integer :assetable_id
6
+ t.integer :data_file_size
7
+ t.integer :height
8
+ t.integer :width
9
+ t.string :assetable_type, limit: 30
10
+ t.string :data_content_type
11
+ t.string :data_file_name, null: false
12
+ t.string :type, limit: 30
13
+
14
+ t.timestamps
15
+ end
16
+
17
+ add_index 'ckeditor_assets', ['assetable_type', 'type', 'assetable_id'], name: 'idx_ckeditor_assetable_type'
18
+ add_index 'ckeditor_assets', ['assetable_type', 'assetable_id'], name: 'idx_ckeditor_assetable'
19
+ end
20
+
21
+ def self.down
22
+ drop_table :ckeditor_assets
23
+ end
24
+ end
@@ -0,0 +1,6 @@
1
+ # This migration comes from beerify (originally 20130918132647)
2
+ class AddHighlightToProducts < ActiveRecord::Migration
3
+ def change
4
+ add_column :products, :highlight, :boolean
5
+ end
6
+ end
@@ -0,0 +1,116 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended that you check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(version: 20130918132952) do
15
+
16
+ create_table "catalogs", force: true do |t|
17
+ t.integer "catalog_id"
18
+ t.string "slug"
19
+ t.string "title"
20
+ t.text "description"
21
+ t.datetime "created_at"
22
+ t.datetime "updated_at"
23
+ end
24
+
25
+ add_index "catalogs", ["catalog_id"], name: "index_catalogs_on_catalog_id", using: :btree
26
+ add_index "catalogs", ["slug"], name: "index_catalogs_on_slug", unique: true, using: :btree
27
+
28
+ create_table "ckeditor_assets", force: true do |t|
29
+ t.integer "assetable_id"
30
+ t.integer "data_file_size"
31
+ t.integer "height"
32
+ t.integer "width"
33
+ t.string "assetable_type", limit: 30
34
+ t.string "data_content_type"
35
+ t.string "data_file_name", null: false
36
+ t.string "type", limit: 30
37
+ t.datetime "created_at"
38
+ t.datetime "updated_at"
39
+ end
40
+
41
+ add_index "ckeditor_assets", ["assetable_type", "assetable_id"], name: "idx_ckeditor_assetable", using: :btree
42
+ add_index "ckeditor_assets", ["assetable_type", "type", "assetable_id"], name: "idx_ckeditor_assetable_type", using: :btree
43
+
44
+ create_table "contacts", force: true do |t|
45
+ t.string "email"
46
+ t.string "name"
47
+ t.text "content"
48
+ t.datetime "created_at"
49
+ t.datetime "updated_at"
50
+ end
51
+
52
+ create_table "news", force: true do |t|
53
+ t.datetime "published_on"
54
+ t.integer "user_id"
55
+ t.string "photo"
56
+ t.string "slug"
57
+ t.string "title"
58
+ t.text "content"
59
+ t.datetime "created_at"
60
+ t.datetime "updated_at"
61
+ end
62
+
63
+ add_index "news", ["slug"], name: "index_news_on_slug", unique: true, using: :btree
64
+ add_index "news", ["user_id"], name: "index_news_on_user_id", using: :btree
65
+
66
+ create_table "photos", force: true do |t|
67
+ t.integer "priority"
68
+ t.string "attachment"
69
+ t.string "title"
70
+ t.text "description"
71
+ t.datetime "created_at"
72
+ t.datetime "updated_at"
73
+ t.integer "product_id"
74
+ end
75
+
76
+ add_index "photos", ["product_id"], name: "index_photos_on_product_id", using: :btree
77
+
78
+ create_table "products", force: true do |t|
79
+ t.decimal "price", precision: 10, scale: 0
80
+ t.integer "catalog_id"
81
+ t.string "title"
82
+ t.string "slug"
83
+ t.text "description"
84
+ t.datetime "created_at"
85
+ t.datetime "updated_at"
86
+ t.boolean "highlight"
87
+ end
88
+
89
+ add_index "products", ["catalog_id"], name: "index_products_on_catalog_id", using: :btree
90
+ add_index "products", ["slug"], name: "index_products_on_slug", unique: true, using: :btree
91
+
92
+ create_table "users", force: true do |t|
93
+ t.string "firstname"
94
+ t.string "lastname"
95
+ t.string "type"
96
+ t.string "username"
97
+ t.datetime "created_at"
98
+ t.datetime "updated_at"
99
+ t.string "email", default: "", null: false
100
+ t.string "encrypted_password", default: "", null: false
101
+ t.string "reset_password_token"
102
+ t.datetime "reset_password_sent_at"
103
+ t.datetime "remember_created_at"
104
+ t.integer "sign_in_count", default: 0
105
+ t.datetime "current_sign_in_at"
106
+ t.datetime "last_sign_in_at"
107
+ t.string "current_sign_in_ip"
108
+ t.string "last_sign_in_ip"
109
+ t.string "authentication_token"
110
+ end
111
+
112
+ add_index "users", ["authentication_token"], name: "index_users_on_authentication_token", unique: true, using: :btree
113
+ add_index "users", ["email"], name: "index_users_on_email", unique: true, using: :btree
114
+ add_index "users", ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true, using: :btree
115
+
116
+ end