multiinsert 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +17 -15
- data/Gemfile +3 -48
- data/LICENSE.txt +22 -0
- data/README.md +28 -3
- data/Rakefile +1 -7
- data/lib/multiinsert.rb +38 -0
- data/lib/multiinsert/version.rb +3 -0
- data/multiinsert.gemspec +23 -0
- metadata +8 -180
- data/Gemfile.lock +0 -182
- data/README.rdoc +0 -261
- data/app/assets/images/Dashboard.jpg +0 -0
- data/app/assets/images/black.png +0 -0
- data/app/assets/images/giff.gif +0 -0
- data/app/assets/images/rails.png +0 -0
- data/app/assets/images/sprites.png +0 -0
- data/app/assets/javascripts/application.js +0 -15
- data/app/assets/javascripts/effects.js +0 -9
- data/app/assets/javascripts/evaluations.js.coffee +0 -3
- data/app/assets/javascripts/tabs_old.js +0 -42
- data/app/assets/stylesheets/application.css +0 -13
- data/app/assets/stylesheets/evaluations.css.scss +0 -3
- data/app/assets/stylesheets/style.css +0 -477
- data/app/assets/stylesheets/tab.css +0 -190
- data/app/controllers/application_controller.rb +0 -15
- data/app/controllers/employee_heirarchies_controller.rb +0 -2
- data/app/controllers/evaluations_controller.rb +0 -80
- data/app/controllers/sessions_controller.rb +0 -48
- data/app/helpers/application_helper.rb +0 -2
- data/app/helpers/employee_heirarchies_helper.rb +0 -2
- data/app/helpers/evaluations_helper.rb +0 -2
- data/app/mailers/.gitkeep +0 -0
- data/app/models/.gitkeep +0 -0
- data/app/models/employee.rb +0 -5
- data/app/models/employee_heirarchy.rb +0 -6
- data/app/models/evaluation.rb +0 -6
- data/app/models/evaluation_interval.rb +0 -5
- data/app/models/evaluation_period.rb +0 -6
- data/app/models/interval_format.rb +0 -4
- data/app/models/role.rb +0 -7
- data/app/models/score.rb +0 -3
- data/app/models/team.rb +0 -10
- data/app/models/team.rb~ +0 -10
- data/app/models/team_value.rb +0 -5
- data/app/models/user.rb +0 -49
- data/app/models/user.rb~ +0 -11
- data/app/models/user_history.rb +0 -6
- data/app/models/user_role.rb +0 -5
- data/app/models/value.rb +0 -8
- data/app/models/value.rb~ +0 -7
- data/app/views/devise/confirmations/new.html.erb +0 -12
- data/app/views/devise/mailer/confirmation_instructions.html.erb +0 -5
- data/app/views/devise/mailer/reset_password_instructions.html.erb +0 -8
- data/app/views/devise/mailer/unlock_instructions.html.erb +0 -7
- data/app/views/devise/passwords/edit.html.erb +0 -16
- data/app/views/devise/passwords/new.html.erb +0 -12
- data/app/views/devise/registrations/edit.html.erb +0 -29
- data/app/views/devise/registrations/new.html.erb +0 -36
- data/app/views/devise/sessions/new.html.erb +0 -17
- data/app/views/devise/shared/_links.erb +0 -25
- data/app/views/devise/unlocks/new.html.erb +0 -12
- data/app/views/evaluations/edit.html.erb +0 -21
- data/app/views/evaluations/first.html.erb +0 -5
- data/app/views/evaluations/index.html.erb +0 -7
- data/app/views/evaluations/new.html.erb +0 -15
- data/app/views/evaluations/show.html.erb +0 -21
- data/app/views/layouts/application.html.erb +0 -87
- data/config.ru +0 -4
- data/config/application.rb +0 -63
- data/config/boot.rb +0 -6
- data/config/database.yml +0 -31
- data/config/database.yml~ +0 -31
- data/config/environment.rb +0 -5
- data/config/environments/development.rb +0 -37
- data/config/environments/production.rb +0 -67
- data/config/environments/test.rb +0 -37
- data/config/initializers/backtrace_silencers.rb +0 -7
- data/config/initializers/devise.rb +0 -240
- data/config/initializers/inflections.rb +0 -15
- data/config/initializers/mime_types.rb +0 -5
- data/config/initializers/rails_admin.rb +0 -116
- data/config/initializers/secret_token.rb +0 -7
- data/config/initializers/session_store.rb +0 -8
- data/config/initializers/wrap_parameters.rb +0 -14
- data/config/locales/devise.en.yml +0 -59
- data/config/locales/en.yml +0 -5
- data/config/routes.rb +0 -70
- data/db/migrate/20130220053413_devise_create_users.rb +0 -52
- data/db/migrate/20130220055237_create_rails_admin_histories_table.rb +0 -18
- data/db/migrate/20130220060116_create_values.rb +0 -9
- data/db/migrate/20130220060116_create_values.rb~ +0 -8
- data/db/migrate/20130220060206_create_scores.rb +0 -9
- data/db/migrate/20130220060258_create_teams.rb +0 -8
- data/db/migrate/20130220060347_create_team_values.rb +0 -9
- data/db/migrate/20130220060347_create_team_values.rb~ +0 -10
- data/db/migrate/20130220060427_create_roles.rb +0 -8
- data/db/migrate/20130220060605_create_evaluation_periods.rb +0 -10
- data/db/migrate/20130220060807_create_evaluation_intervals.rb +0 -9
- data/db/migrate/20130220060902_create_interval_formats.rb +0 -9
- data/db/migrate/20130220061022_create_user_histories.rb +0 -13
- data/db/migrate/20130220061242_create_evaluations.rb +0 -16
- data/db/migrate/20130305063738_create_user_roles.rb +0 -9
- data/db/migrate/20130305091849_create_employees.rb +0 -12
- data/db/migrate/20130305144125_create_employee_heirarchies.rb +0 -13
- data/db/migrate/20130305150244_add_foreign_keys_to_employee_heirarchies.rb +0 -6
- data/db/migrate/20130307035139_addmanagerid_to_evaluations.rb +0 -9
- data/db/schema.rb +0 -175
- data/db/seeds.rb +0 -7
- data/doc/README_FOR_APP +0 -2
- data/lib/assets/.gitkeep +0 -0
- data/lib/tasks/.gitkeep +0 -0
- data/log/.gitkeep +0 -0
- data/public/404.html +0 -26
- data/public/422.html +0 -26
- data/public/500.html +0 -25
- data/public/favicon.ico +0 -0
- data/public/robots.txt +0 -5
- data/script/rails +0 -6
- data/test/fixtures/.gitkeep +0 -0
- data/test/fixtures/evaluation_intervals.yml +0 -9
- data/test/fixtures/evaluation_periods.yml +0 -11
- data/test/fixtures/evaluations.yml +0 -19
- data/test/fixtures/interval_formats.yml +0 -7
- data/test/fixtures/roles.yml +0 -7
- data/test/fixtures/scores.yml +0 -9
- data/test/fixtures/team_values.yml +0 -9
- data/test/fixtures/teams.yml +0 -9
- data/test/fixtures/user_histories.yml +0 -15
- data/test/fixtures/users.yml +0 -11
- data/test/fixtures/values.yml +0 -7
- data/test/functional/.gitkeep +0 -0
- data/test/functional/employee_heirarchies_controller_test.rb +0 -7
- data/test/functional/evaluations_controller_test.rb +0 -7
- data/test/integration/.gitkeep +0 -0
- data/test/performance/browsing_test.rb +0 -12
- data/test/test_helper.rb +0 -13
- data/test/unit/.gitkeep +0 -0
- data/test/unit/evaluation_interval_test.rb +0 -7
- data/test/unit/evaluation_period_test.rb +0 -7
- data/test/unit/evaluation_test.rb +0 -7
- data/test/unit/helpers/employee_heirarchies_helper_test.rb +0 -4
- data/test/unit/helpers/evaluations_helper_test.rb +0 -4
- data/test/unit/interval_format_test.rb +0 -7
- data/test/unit/role_test.rb +0 -7
- data/test/unit/score_test.rb +0 -7
- data/test/unit/team_test.rb +0 -7
- data/test/unit/team_value_test.rb +0 -7
- data/test/unit/user_history_test.rb +0 -7
- data/test/unit/user_test.rb +0 -7
- data/test/unit/value_test.rb +0 -7
- data/vendor/assets/javascripts/.gitkeep +0 -0
- data/vendor/assets/stylesheets/.gitkeep +0 -0
- data/vendor/plugins/.gitkeep +0 -0
@@ -1,15 +0,0 @@
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
2
|
-
|
3
|
-
# Add new inflection rules using the following format
|
4
|
-
# (all these examples are active by default):
|
5
|
-
# ActiveSupport::Inflector.inflections do |inflect|
|
6
|
-
# inflect.plural /^(ox)$/i, '\1en'
|
7
|
-
# inflect.singular /^(ox)en/i, '\1'
|
8
|
-
# inflect.irregular 'person', 'people'
|
9
|
-
# inflect.uncountable %w( fish sheep )
|
10
|
-
# end
|
11
|
-
#
|
12
|
-
# These inflection rules are supported but not enabled by default:
|
13
|
-
# ActiveSupport::Inflector.inflections do |inflect|
|
14
|
-
# inflect.acronym 'RESTful'
|
15
|
-
# end
|
@@ -1,116 +0,0 @@
|
|
1
|
-
# RailsAdmin config file. Generated on February 20, 2013 11:22
|
2
|
-
# See github.com/sferik/rails_admin for more informations
|
3
|
-
|
4
|
-
RailsAdmin.config do |config|
|
5
|
-
|
6
|
-
|
7
|
-
################ Global configuration ################
|
8
|
-
|
9
|
-
# Set the admin name here (optional second array element will appear in red). For example:
|
10
|
-
config.main_app_name = ['Employ Perf', 'Admin']
|
11
|
-
# or for a more dynamic name:
|
12
|
-
# config.main_app_name = Proc.new { |controller| [Rails.application.engine_name.titleize, controller.params['action'].titleize] }
|
13
|
-
|
14
|
-
# RailsAdmin may need a way to know who the current user is]
|
15
|
-
config.current_user_method { current_user } # auto-generated
|
16
|
-
|
17
|
-
# If you want to track changes on your models:
|
18
|
-
# config.audit_with :history, 'User'
|
19
|
-
|
20
|
-
# Or with a PaperTrail: (you need to install it first)
|
21
|
-
# config.audit_with :paper_trail, 'User'
|
22
|
-
|
23
|
-
# Display empty fields in show views:
|
24
|
-
# config.compact_show_view = false
|
25
|
-
|
26
|
-
# Number of default rows per-page:
|
27
|
-
# config.default_items_per_page = 20
|
28
|
-
|
29
|
-
# Exclude specific models (keep the others):
|
30
|
-
# config.excluded_models = ['User']
|
31
|
-
|
32
|
-
# Include specific models (exclude the others):
|
33
|
-
# config.included_models = ['User']
|
34
|
-
|
35
|
-
# Label methods for model instances:
|
36
|
-
# config.label_methods << :description # Default is [:name, :title]
|
37
|
-
|
38
|
-
|
39
|
-
################ Model configuration ################
|
40
|
-
|
41
|
-
# Each model configuration can alternatively:
|
42
|
-
# - stay here in a `config.model 'ModelName' do ... end` block
|
43
|
-
# - go in the model definition file in a `rails_admin do ... end` block
|
44
|
-
|
45
|
-
# This is your choice to make:
|
46
|
-
# - This initializer is loaded once at startup (modifications will show up when restarting the application) but all RailsAdmin configuration would stay in one place.
|
47
|
-
# - Models are reloaded at each request in development mode (when modified), which may smooth your RailsAdmin development workflow.
|
48
|
-
|
49
|
-
|
50
|
-
# Now you probably need to tour the wiki a bit: https://github.com/sferik/rails_admin/wiki
|
51
|
-
# Anyway, here is how RailsAdmin saw your application's models when you ran the initializer:
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
### User ###
|
56
|
-
|
57
|
-
# config.model 'User' do
|
58
|
-
|
59
|
-
# # You can copy this to a 'rails_admin do ... end' block inside your user.rb model definition
|
60
|
-
|
61
|
-
# # Found associations:
|
62
|
-
|
63
|
-
|
64
|
-
# # Found columns:
|
65
|
-
|
66
|
-
# configure :id, :integer
|
67
|
-
# configure :email, :string
|
68
|
-
# configure :password, :password # Hidden
|
69
|
-
# configure :password_confirmation, :password # Hidden
|
70
|
-
# configure :reset_password_token, :string # Hidden
|
71
|
-
# configure :firstname, :string
|
72
|
-
# configure :lastname, :string
|
73
|
-
# configure :phonenum, :integer
|
74
|
-
# configure :address, :text
|
75
|
-
# configure :team_id, :integer
|
76
|
-
# configure :role_id, :integer
|
77
|
-
# configure :reset_password_sent_at, :datetime
|
78
|
-
# configure :remember_created_at, :datetime
|
79
|
-
# configure :sign_in_count, :integer
|
80
|
-
# configure :current_sign_in_at, :datetime
|
81
|
-
# configure :last_sign_in_at, :datetime
|
82
|
-
# configure :current_sign_in_ip, :string
|
83
|
-
# configure :last_sign_in_ip, :string
|
84
|
-
# configure :confirmation_token, :string
|
85
|
-
# configure :confirmed_at, :datetime
|
86
|
-
# configure :confirmation_sent_at, :datetime
|
87
|
-
# configure :unconfirmed_email, :string
|
88
|
-
# configure :created_at, :datetime
|
89
|
-
# configure :updated_at, :datetime
|
90
|
-
|
91
|
-
# # Cross-section configuration:
|
92
|
-
|
93
|
-
# # object_label_method :name # Name of the method called for pretty printing an *instance* of ModelName
|
94
|
-
# # label 'My model' # Name of ModelName (smartly defaults to ActiveRecord's I18n API)
|
95
|
-
# # label_plural 'My models' # Same, plural
|
96
|
-
# # weight 0 # Navigation priority. Bigger is higher.
|
97
|
-
# # parent OtherModel # Set parent model for navigation. MyModel will be nested below. OtherModel will be on first position of the dropdown
|
98
|
-
# # navigation_label # Sets dropdown entry's name in navigation. Only for parents!
|
99
|
-
|
100
|
-
# # Section specific configuration:
|
101
|
-
|
102
|
-
# list do
|
103
|
-
# # filters [:id, :name] # Array of field names which filters should be shown by default in the table header
|
104
|
-
# # items_per_page 100 # Override default_items_per_page
|
105
|
-
# # sort_by :id # Sort column (default is primary key)
|
106
|
-
# # sort_reverse true # Sort direction (default is true for primary key, last created first)
|
107
|
-
# end
|
108
|
-
# show do; end
|
109
|
-
# edit do; end
|
110
|
-
# export do; end
|
111
|
-
# # also see the create, update, modal and nested sections, which override edit in specific cases (resp. when creating, updating, modifying from another model in a popup modal or modifying from another model nested form)
|
112
|
-
# # you can override a cross-section field configuration in any section with the same syntax `configure :field_name do ... end`
|
113
|
-
# # using `field` instead of `configure` will exclude all other fields and force the ordering
|
114
|
-
# end
|
115
|
-
|
116
|
-
end
|
@@ -1,7 +0,0 @@
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
2
|
-
|
3
|
-
# Your secret key for verifying the integrity of signed cookies.
|
4
|
-
# If you change this key, all old signed cookies will become invalid!
|
5
|
-
# Make sure the secret is at least 30 characters and all random,
|
6
|
-
# no regular words or you'll be exposed to dictionary attacks.
|
7
|
-
EmployPerf::Application.config.secret_token = '121165759eea441f6dd2bb7c0ac98643ef7c039e8d1eb100856920e96f8667de6396eb9057669aec60d2f597e9d76425431ab647ef5dfcebba2ae0923d1f5b38'
|
@@ -1,8 +0,0 @@
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
2
|
-
|
3
|
-
EmployPerf::Application.config.session_store :cookie_store, key: '_employ_perf_session'
|
4
|
-
|
5
|
-
# Use the database for sessions instead of the cookie-based default,
|
6
|
-
# which shouldn't be used to store highly confidential information
|
7
|
-
# (create the session table with "rails generate session_migration")
|
8
|
-
# EmployPerf::Application.config.session_store :active_record_store
|
@@ -1,14 +0,0 @@
|
|
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]
|
9
|
-
end
|
10
|
-
|
11
|
-
# Disable root element in JSON by default.
|
12
|
-
ActiveSupport.on_load(:active_record) do
|
13
|
-
self.include_root_in_json = false
|
14
|
-
end
|
@@ -1,59 +0,0 @@
|
|
1
|
-
# Additional translations at https://github.com/plataformatec/devise/wiki/I18n
|
2
|
-
|
3
|
-
en:
|
4
|
-
devise:
|
5
|
-
confirmations:
|
6
|
-
confirmed: "Your account was successfully confirmed. You are now signed in."
|
7
|
-
send_instructions: "You will receive an email with instructions about how to confirm your account in a few minutes."
|
8
|
-
send_paranoid_instructions: "If your email address exists in our database, you will receive an email with instructions about how to confirm your account in a few minutes."
|
9
|
-
failure:
|
10
|
-
already_authenticated: "You are already signed in."
|
11
|
-
inactive: "Your account was not activated yet."
|
12
|
-
invalid: "Invalid email or password."
|
13
|
-
invalid_token: "Invalid authentication token."
|
14
|
-
locked: "Your account is locked."
|
15
|
-
not_found_in_database: "Invalid email or password."
|
16
|
-
timeout: "Your session expired, please sign in again to continue."
|
17
|
-
unauthenticated: "You need to sign in or sign up before continuing."
|
18
|
-
unconfirmed: "You have to confirm your account before continuing."
|
19
|
-
mailer:
|
20
|
-
confirmation_instructions:
|
21
|
-
subject: "Confirmation instructions"
|
22
|
-
reset_password_instructions:
|
23
|
-
subject: "Reset password instructions"
|
24
|
-
unlock_instructions:
|
25
|
-
subject: "Unlock Instructions"
|
26
|
-
omniauth_callbacks:
|
27
|
-
failure: "Could not authenticate you from %{kind} because \"%{reason}\"."
|
28
|
-
success: "Successfully authenticated from %{kind} account."
|
29
|
-
passwords:
|
30
|
-
no_token: "You can't access this page without coming from a password reset email. If you do come from a password reset email, please make sure you used the full URL provided."
|
31
|
-
send_instructions: "You will receive an email with instructions about how to reset your password in a few minutes."
|
32
|
-
send_paranoid_instructions: "If your email address exists in our database, you will receive a password recovery link at your email address in a few minutes."
|
33
|
-
updated: "Your password was changed successfully. You are now signed in."
|
34
|
-
updated_not_active: "Your password was changed successfully."
|
35
|
-
registrations:
|
36
|
-
destroyed: "Bye! Your account was successfully cancelled. We hope to see you again soon."
|
37
|
-
signed_up: "Welcome! You have signed up successfully."
|
38
|
-
signed_up_but_inactive: "You have signed up successfully. However, we could not sign you in because your account is not yet activated."
|
39
|
-
signed_up_but_locked: "You have signed up successfully. However, we could not sign you in because your account is locked."
|
40
|
-
signed_up_but_unconfirmed: "A message with a confirmation link has been sent to your email address. Please open the link to activate your account."
|
41
|
-
update_needs_confirmation: "You updated your account successfully, but we need to verify your new email address. Please check your email and click on the confirm link to finalize confirming your new email address."
|
42
|
-
updated: "You updated your account successfully."
|
43
|
-
sessions:
|
44
|
-
signed_in: "Signed in successfully."
|
45
|
-
signed_out: "Signed out successfully."
|
46
|
-
unlocks:
|
47
|
-
send_instructions: "You will receive an email with instructions about how to unlock your account in a few minutes."
|
48
|
-
send_paranoid_instructions: "If your account exists, you will receive an email with instructions about how to unlock it in a few minutes."
|
49
|
-
unlocked: "Your account has been unlocked successfully. Please sign in to continue."
|
50
|
-
errors:
|
51
|
-
messages:
|
52
|
-
already_confirmed: "was already confirmed, please try signing in"
|
53
|
-
confirmation_period_expired: "needs to be confirmed within %{period}, please request a new one"
|
54
|
-
expired: "has expired, please request a new one"
|
55
|
-
not_found: "not found"
|
56
|
-
not_locked: "was not locked"
|
57
|
-
not_saved:
|
58
|
-
one: "1 error prohibited this %{resource} from being saved:"
|
59
|
-
other: "%{count} errors prohibited this %{resource} from being saved:"
|
data/config/locales/en.yml
DELETED
data/config/routes.rb
DELETED
@@ -1,70 +0,0 @@
|
|
1
|
-
EmployPerf::Application.routes.draw do
|
2
|
-
mount RailsAdmin::Engine => '/admin', :as => 'rails_admin'
|
3
|
-
|
4
|
-
devise_for :users
|
5
|
-
devise_for :users, :controllers => {:sessions => "sessions"}
|
6
|
-
resources :evaluations do
|
7
|
-
member do
|
8
|
-
get 'evaluation_update'
|
9
|
-
end
|
10
|
-
end
|
11
|
-
|
12
|
-
resources :employee_heirarchies
|
13
|
-
|
14
|
-
# The priority is based upon order of creation:
|
15
|
-
# first created -> highest priority.
|
16
|
-
|
17
|
-
# Sample of regular route:
|
18
|
-
# match 'products/:id' => 'catalog#view'
|
19
|
-
# Keep in mind you can assign values other than :controller and :action
|
20
|
-
|
21
|
-
# Sample of named route:
|
22
|
-
# match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
|
23
|
-
# This route can be invoked with purchase_url(:id => product.id)
|
24
|
-
|
25
|
-
# Sample resource route (maps HTTP verbs to controller actions automatically):
|
26
|
-
# resources :products
|
27
|
-
|
28
|
-
# Sample resource route with options:
|
29
|
-
# resources :products do
|
30
|
-
# member do
|
31
|
-
# get 'short'
|
32
|
-
# post 'toggle'
|
33
|
-
# end
|
34
|
-
#
|
35
|
-
# collection do
|
36
|
-
# get 'sold'
|
37
|
-
# end
|
38
|
-
# end
|
39
|
-
|
40
|
-
# Sample resource route with sub-resources:
|
41
|
-
# resources :products do
|
42
|
-
# resources :comments, :sales
|
43
|
-
# resource :seller
|
44
|
-
# end
|
45
|
-
|
46
|
-
# Sample resource route with more complex sub-resources
|
47
|
-
# resources :products do
|
48
|
-
# resources :comments
|
49
|
-
# resources :sales do
|
50
|
-
# get 'recent', :on => :collection
|
51
|
-
# end
|
52
|
-
# end
|
53
|
-
|
54
|
-
# Sample resource route within a namespace:
|
55
|
-
# namespace :admin do
|
56
|
-
# # Directs /admin/products/* to Admin::ProductsController
|
57
|
-
# # (app/controllers/admin/products_controller.rb)
|
58
|
-
# resources :products
|
59
|
-
# end
|
60
|
-
|
61
|
-
# You can have the root of your site routed with "root"
|
62
|
-
# just remember to delete public/index.html.
|
63
|
-
root :to => 'evaluations#first'
|
64
|
-
|
65
|
-
# See how all your routes lay out with "rake routes"
|
66
|
-
|
67
|
-
# This is a legacy wild controller route that's not recommended for RESTful applications.
|
68
|
-
# Note: This route will make all actions in every controller accessible via GET requests.
|
69
|
-
match ':controller(/:action(/:id))(.:format)'
|
70
|
-
end
|
@@ -1,52 +0,0 @@
|
|
1
|
-
class DeviseCreateUsers < ActiveRecord::Migration
|
2
|
-
def change
|
3
|
-
create_table(:users) do |t|
|
4
|
-
## Database authenticatable
|
5
|
-
t.string :email, :null => false, :default => ""
|
6
|
-
t.string :encrypted_password, :null => false, :default => ""
|
7
|
-
t.string :firstname
|
8
|
-
t.string :lastname
|
9
|
-
t.integer :phonenum
|
10
|
-
t.text :address
|
11
|
-
t.integer :team_id
|
12
|
-
t.integer :role_id
|
13
|
-
t.string :designation
|
14
|
-
## Recoverable
|
15
|
-
t.string :reset_password_token
|
16
|
-
t.datetime :reset_password_sent_at
|
17
|
-
|
18
|
-
## Rememberable
|
19
|
-
t.datetime :remember_created_at
|
20
|
-
|
21
|
-
## Trackable
|
22
|
-
t.integer :sign_in_count, :default => 0
|
23
|
-
t.datetime :current_sign_in_at
|
24
|
-
t.datetime :last_sign_in_at
|
25
|
-
t.string :current_sign_in_ip
|
26
|
-
t.string :last_sign_in_ip
|
27
|
-
|
28
|
-
## Confirmable
|
29
|
-
t.string :confirmation_token
|
30
|
-
t.datetime :confirmed_at
|
31
|
-
t.datetime :confirmation_sent_at
|
32
|
-
t.string :unconfirmed_email # Only if using reconfirmable
|
33
|
-
|
34
|
-
## Lockable
|
35
|
-
# t.integer :failed_attempts, :default => 0 # Only if lock strategy is :failed_attempts
|
36
|
-
# t.string :unlock_token # Only if unlock strategy is :email or :both
|
37
|
-
# t.datetime :locked_at
|
38
|
-
|
39
|
-
## Token authenticatable
|
40
|
-
# t.string :authentication_token
|
41
|
-
|
42
|
-
|
43
|
-
t.timestamps
|
44
|
-
end
|
45
|
-
|
46
|
-
add_index :users, :email, :unique => true
|
47
|
-
add_index :users, :reset_password_token, :unique => true
|
48
|
-
# add_index :users, :confirmation_token, :unique => true
|
49
|
-
# add_index :users, :unlock_token, :unique => true
|
50
|
-
# add_index :users, :authentication_token, :unique => true
|
51
|
-
end
|
52
|
-
end
|
@@ -1,18 +0,0 @@
|
|
1
|
-
class CreateRailsAdminHistoriesTable < ActiveRecord::Migration
|
2
|
-
def self.up
|
3
|
-
create_table :rails_admin_histories do |t|
|
4
|
-
t.text :message # title, name, or object_id
|
5
|
-
t.string :username
|
6
|
-
t.integer :item
|
7
|
-
t.string :table
|
8
|
-
t.integer :month, :limit => 2
|
9
|
-
t.integer :year, :limit => 5
|
10
|
-
t.timestamps
|
11
|
-
end
|
12
|
-
add_index(:rails_admin_histories, [:item, :table, :month, :year], :name => 'index_rails_admin_histories' )
|
13
|
-
end
|
14
|
-
|
15
|
-
def self.down
|
16
|
-
drop_table :rails_admin_histories
|
17
|
-
end
|
18
|
-
end
|