roroacms 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. data/MIT-LICENSE +20 -20
  2. data/README.md +62 -61
  3. data/Rakefile +19 -19
  4. data/app/assets/javascripts/roroacms/admin/application.js +1 -3
  5. data/app/assets/javascripts/roroacms/admin/roroacms-tour.js +46 -46
  6. data/app/assets/javascripts/roroacms/application.js +9 -21
  7. data/app/assets/javascripts/roroacms/vendor/hopscotch.js +2409 -2409
  8. data/app/assets/stylesheets/roroacms/admin/application.css +5 -3
  9. data/app/assets/stylesheets/roroacms/vendor/hopscotch.css +512 -512
  10. data/app/assets/stylesheets/roroacms/vendor/jquery/jquery-ui.css +1177 -1177
  11. data/app/controllers/roroacms/admin_controller.rb +1 -0
  12. data/app/controllers/roroacms/application_controller.rb +5 -3
  13. data/app/helpers/roroacms/admin_roroa_helper.rb +4 -4
  14. data/app/helpers/roroacms/admin_view_helper.rb +16 -16
  15. data/app/helpers/roroacms/application_helper.rb +4 -4
  16. data/app/helpers/roroacms/general_helper.rb +8 -8
  17. data/app/helpers/roroacms/new_view_helper.rb +7 -6
  18. data/app/helpers/roroacms/routing_helper.rb +15 -15
  19. data/app/helpers/roroacms/seo_helper.rb +2 -1
  20. data/app/helpers/roroacms/theme_helper.rb +6 -6
  21. data/app/helpers/roroacms/view_helper.rb +4 -4
  22. data/app/mailers/roroacms/emailer.rb +31 -31
  23. data/app/views/layouts/roroacms/application.html.erb +1 -1
  24. data/app/views/roroacms/admin/partials/_append_sidebar_menu.html.erb +51 -51
  25. data/app/views/roroacms/admin/partials/_comment.html.erb +10 -1
  26. data/app/views/roroacms/admin/partials/_editor.html.erb +21 -21
  27. data/app/views/roroacms/setup/administrator.html.erb +72 -72
  28. data/app/views/roroacms/setup/index.html.erb +108 -108
  29. data/config/initializers/devise.rb +258 -258
  30. data/config/locales/devise.en.yml +115 -115
  31. data/config/locales/en.yml +1 -1
  32. data/config/routes.rb +96 -96
  33. data/db/migrate/20140801203556_add_admins.rb +44 -44
  34. data/db/migrate/20140802084604_add_roroacms_comments.rb +31 -31
  35. data/db/migrate/20140802084615_add_roroacms_menu_options.rb +24 -24
  36. data/db/migrate/20140802084624_add_roroacms_menus.rb +18 -18
  37. data/db/migrate/20140802084631_add_roroacms_posts.rb +42 -42
  38. data/db/migrate/20140802084638_add_roroacms_settings.rb +21 -21
  39. data/db/migrate/20140802084658_add_roroacms_term_anatomies.rb +20 -20
  40. data/db/migrate/20140802084707_add_roroacms_term_relationships.rb +23 -23
  41. data/db/migrate/20140802084717_add_roroacms_terms.rb +27 -27
  42. data/lib/ext/string.rb +4 -4
  43. data/lib/generators/roroacms/install_generator.rb +16 -16
  44. data/lib/roroacms/engine.rb +4 -5
  45. data/lib/roroacms/version.rb +3 -3
  46. data/lib/roroacms.rb +5 -5
  47. data/lib/tasks/roroacms_tasks.rake +9 -9
  48. data/spec/controllers/roroacms/admin/themes_controller_spec.rb +2 -2
  49. data/spec/dummy/README.rdoc +28 -28
  50. data/spec/dummy/Rakefile +6 -6
  51. data/spec/dummy/app/controllers/application_controller.rb +5 -5
  52. data/spec/dummy/app/helpers/application_helper.rb +2 -2
  53. data/spec/dummy/app/helpers/theme_helper.rb +12 -12
  54. data/spec/dummy/app/views/layouts/application.html.erb +14 -14
  55. data/spec/dummy/app/views/theme/roroa-bootstrap-3/theme_helper.rb +8 -8
  56. data/spec/dummy/app/views/theme/roroa1/assets/stylesheets/style.css.scss +8 -8
  57. data/spec/dummy/app/views/theme/roroa1/layout.html.erb +1 -1
  58. data/spec/dummy/bin/bundle +3 -3
  59. data/spec/dummy/bin/rails +4 -4
  60. data/spec/dummy/bin/rake +4 -4
  61. data/spec/dummy/config/application.rb +23 -23
  62. data/spec/dummy/config/boot.rb +5 -5
  63. data/spec/dummy/config/database.yml +7 -7
  64. data/spec/dummy/config/environment.rb +5 -5
  65. data/spec/dummy/config/environments/development.rb +37 -37
  66. data/spec/dummy/config/environments/production.rb +82 -82
  67. data/spec/dummy/config/environments/test.rb +39 -39
  68. data/spec/dummy/config/initializers/assets.rb +8 -8
  69. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -7
  70. data/spec/dummy/config/initializers/cookies_serializer.rb +2 -2
  71. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -4
  72. data/spec/dummy/config/initializers/inflections.rb +16 -16
  73. data/spec/dummy/config/initializers/mime_types.rb +4 -4
  74. data/spec/dummy/config/initializers/session_store.rb +3 -3
  75. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -14
  76. data/spec/dummy/config/locales/en.yml +23 -23
  77. data/spec/dummy/config/routes.rb +3 -3
  78. data/spec/dummy/config/secrets.yml +22 -22
  79. data/spec/dummy/config.ru +4 -4
  80. data/spec/dummy/db/schema.rb +149 -149
  81. data/spec/dummy/public/404.html +67 -67
  82. data/spec/dummy/public/422.html +67 -67
  83. data/spec/dummy/public/500.html +66 -66
  84. data/spec/dummy/public/javascripts/translations.js +1 -1
  85. data/spec/dummy/tmp/cache/i18n-js.yml +36 -36
  86. data/spec/models/roroacms/admin_spec.rb +67 -67
  87. data/spec/spec_helper.rb +35 -35
  88. data/spec/support/factories.rb +79 -79
  89. metadata +2 -2
@@ -1,116 +1,116 @@
1
- # Additional translations at https://github.com/plataformatec/devise/wiki/I18n
2
-
3
- en:
4
- devise:
5
- confirmations:
6
- new:
7
- resend_confirmation_instructions: "Resend confirmation instructions"
8
- confirmed: "Your account was successfully confirmed."
9
- send_instructions: "You will receive an email with instructions about how to confirm your account in a few minutes."
10
- 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."
11
- failure:
12
- already_authenticated: "You are already signed in."
13
- inactive: "Your account is not activated yet."
14
- invalid: "Invalid email or password."
15
- invalid_token: "Invalid authentication token."
16
- locked: "Your account is locked."
17
- not_found_in_database: "Invalid email or password."
18
- timeout: "Your session expired. Please sign in again to continue."
19
- unauthenticated: "You need to sign in or sign up before continuing."
20
- unconfirmed: "You have to confirm your account before continuing."
21
- mailer:
22
- confirmation_instructions:
23
- action: "Confirm my account"
24
- greeting: "Welcome %{recipient}!"
25
- instruction: "You can confirm your account email through the link below:"
26
- subject: "Confirmation instructions"
27
- reset_password_instructions:
28
- action: "Change my password"
29
- greeting: "Hello %{recipient}!"
30
- instruction: "Someone has requested a link to change your password, and you can do this through the link below."
31
- instruction_2: "If you didn't request this, please ignore this email."
32
- instruction_3: "Your password won't change until you access the link above and create a new one."
33
- subject: "Reset password instructions"
34
- unlock_instructions:
35
- action: "Unlock my account"
36
- greeting: "Hello %{recipient}!"
37
- instruction: "Click the link below to unlock your account:"
38
- message: "Your account has been locked due to an excessive amount of unsuccessful sign in attempts."
39
- subject: "Unlock Instructions"
40
- omniauth_callbacks:
41
- failure: "Could not authenticate you from %{kind} because \"%{reason}\"."
42
- success: "Successfully authenticated from %{kind} account."
43
- passwords:
44
- new:
45
- forgot_your_password: "Forgot your password?"
46
- send_me_reset_password_instructions: "Send me reset password instructions"
47
- placeholder: "Email / Username"
48
- edit:
49
- change_your_password: "Change your password"
50
- new_password: "New password"
51
- confirm_new_password: "Confirm new password"
52
- change_my_password: "Change my password"
53
- 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."
54
- send_instructions: "You will receive an email with instructions about how to reset your password in a few minutes."
55
- 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."
56
- updated: "Your password was changed successfully. You are now signed in."
57
- updated_not_active: "Your password was changed successfully."
58
- registrations:
59
- edit:
60
- are_you_sure: "Are you sure?"
61
- cancel_my_account: "Cancel my account"
62
- leave_blank_if_you_don_t_want_to_change_it: "leave blank if you dont want to change it"
63
- title: "Edit %{resource}"
64
- we_need_your_current_password_to_confirm_your_changes: "we need your current password to confirm your changes"
65
- update: "Update"
66
- unhappy: "Unhappy"
67
- new:
68
- sign_up: "Sign up"
69
- destroyed: "Bye! Your account was successfully cancelled. We hope to see you again soon."
70
- signed_up: "Welcome! You have signed up successfully."
71
- signed_up_but_inactive: "You have signed up successfully. However, we could not sign you in because your account is not yet activated."
72
- signed_up_but_locked: "You have signed up successfully. However, we could not sign you in because your account is locked."
73
- 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."
74
- 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."
75
- updated: "You updated your account successfully."
76
- sessions:
77
- signed_in: "Signed in successfully."
78
- signed_out: "Signed out successfully."
79
- new:
80
- placeholder_email: "Email / Username"
81
- placeholder_password: "Password"
82
- sign_in: "Sign in"
83
- remember_me: "Remember me"
84
- shared:
85
- links:
86
- didn_t_receive_confirmation_instructions: "Didn't receive confirmation instructions?"
87
- didn_t_receive_unlock_instructions: "Didn't receive unlock instructions?"
88
- forgot_your_password: "Forgot your password?"
89
- sign_in: "Sign in"
90
- sign_in_with_provider: "Sign in with %{provider}"
91
- sign_up: "Sign up"
92
- unlocks:
93
- new:
94
- resend_unlock_instructions: "Resend unlock instructions"
95
- send_instructions: "You will receive an email with instructions about how to unlock your account in a few minutes."
96
- send_paranoid_instructions: "If your account exists, you will receive an email with instructions about how to unlock it in a few minutes."
97
- unlocked: "Your account has been unlocked successfully. Please sign in to continue."
98
- errors:
99
- messages:
100
- already_confirmed: "was already confirmed, please try signing in"
101
- confirmation_period_expired: "needs to be confirmed within %{period}, please request a new one"
102
- expired: "has expired, please request a new one"
103
- not_found: "not found"
104
- not_locked: "was not locked"
105
- not_saved:
106
- one: "Something went wrong:"
107
- other: "%{count} errors prohibited this %{resource} from being saved:"
108
- activerecord:
109
- models:
110
- user: "User"
111
- attributes:
112
- user:
113
- current_sign_in_at: "Signed in at"
114
- email: "Email"
115
- password: "Password"
1
+ # Additional translations at https://github.com/plataformatec/devise/wiki/I18n
2
+
3
+ en:
4
+ devise:
5
+ confirmations:
6
+ new:
7
+ resend_confirmation_instructions: "Resend confirmation instructions"
8
+ confirmed: "Your account was successfully confirmed."
9
+ send_instructions: "You will receive an email with instructions about how to confirm your account in a few minutes."
10
+ 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."
11
+ failure:
12
+ already_authenticated: "You are already signed in."
13
+ inactive: "Your account is not activated yet."
14
+ invalid: "Invalid email or password."
15
+ invalid_token: "Invalid authentication token."
16
+ locked: "Your account is locked."
17
+ not_found_in_database: "Invalid email or password."
18
+ timeout: "Your session expired. Please sign in again to continue."
19
+ unauthenticated: "You need to sign in or sign up before continuing."
20
+ unconfirmed: "You have to confirm your account before continuing."
21
+ mailer:
22
+ confirmation_instructions:
23
+ action: "Confirm my account"
24
+ greeting: "Welcome %{recipient}!"
25
+ instruction: "You can confirm your account email through the link below:"
26
+ subject: "Confirmation instructions"
27
+ reset_password_instructions:
28
+ action: "Change my password"
29
+ greeting: "Hello %{recipient}!"
30
+ instruction: "Someone has requested a link to change your password, and you can do this through the link below."
31
+ instruction_2: "If you didn't request this, please ignore this email."
32
+ instruction_3: "Your password won't change until you access the link above and create a new one."
33
+ subject: "Reset password instructions"
34
+ unlock_instructions:
35
+ action: "Unlock my account"
36
+ greeting: "Hello %{recipient}!"
37
+ instruction: "Click the link below to unlock your account:"
38
+ message: "Your account has been locked due to an excessive amount of unsuccessful sign in attempts."
39
+ subject: "Unlock Instructions"
40
+ omniauth_callbacks:
41
+ failure: "Could not authenticate you from %{kind} because \"%{reason}\"."
42
+ success: "Successfully authenticated from %{kind} account."
43
+ passwords:
44
+ new:
45
+ forgot_your_password: "Forgot your password?"
46
+ send_me_reset_password_instructions: "Send me reset password instructions"
47
+ placeholder: "Email / Username"
48
+ edit:
49
+ change_your_password: "Change your password"
50
+ new_password: "New password"
51
+ confirm_new_password: "Confirm new password"
52
+ change_my_password: "Change my password"
53
+ 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."
54
+ send_instructions: "You will receive an email with instructions about how to reset your password in a few minutes."
55
+ 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."
56
+ updated: "Your password was changed successfully. You are now signed in."
57
+ updated_not_active: "Your password was changed successfully."
58
+ registrations:
59
+ edit:
60
+ are_you_sure: "Are you sure?"
61
+ cancel_my_account: "Cancel my account"
62
+ leave_blank_if_you_don_t_want_to_change_it: "leave blank if you dont want to change it"
63
+ title: "Edit %{resource}"
64
+ we_need_your_current_password_to_confirm_your_changes: "we need your current password to confirm your changes"
65
+ update: "Update"
66
+ unhappy: "Unhappy"
67
+ new:
68
+ sign_up: "Sign up"
69
+ destroyed: "Bye! Your account was successfully cancelled. We hope to see you again soon."
70
+ signed_up: "Welcome! You have signed up successfully."
71
+ signed_up_but_inactive: "You have signed up successfully. However, we could not sign you in because your account is not yet activated."
72
+ signed_up_but_locked: "You have signed up successfully. However, we could not sign you in because your account is locked."
73
+ 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."
74
+ 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."
75
+ updated: "You updated your account successfully."
76
+ sessions:
77
+ signed_in: "Signed in successfully."
78
+ signed_out: "Signed out successfully."
79
+ new:
80
+ placeholder_email: "Email / Username"
81
+ placeholder_password: "Password"
82
+ sign_in: "Sign in"
83
+ remember_me: "Remember me"
84
+ shared:
85
+ links:
86
+ didn_t_receive_confirmation_instructions: "Didn't receive confirmation instructions?"
87
+ didn_t_receive_unlock_instructions: "Didn't receive unlock instructions?"
88
+ forgot_your_password: "Forgot your password?"
89
+ sign_in: "Sign in"
90
+ sign_in_with_provider: "Sign in with %{provider}"
91
+ sign_up: "Sign up"
92
+ unlocks:
93
+ new:
94
+ resend_unlock_instructions: "Resend unlock instructions"
95
+ send_instructions: "You will receive an email with instructions about how to unlock your account in a few minutes."
96
+ send_paranoid_instructions: "If your account exists, you will receive an email with instructions about how to unlock it in a few minutes."
97
+ unlocked: "Your account has been unlocked successfully. Please sign in to continue."
98
+ errors:
99
+ messages:
100
+ already_confirmed: "was already confirmed, please try signing in"
101
+ confirmation_period_expired: "needs to be confirmed within %{period}, please request a new one"
102
+ expired: "has expired, please request a new one"
103
+ not_found: "not found"
104
+ not_locked: "was not locked"
105
+ not_saved:
106
+ one: "Something went wrong:"
107
+ other: "%{count} errors prohibited this %{resource} from being saved:"
108
+ activerecord:
109
+ models:
110
+ user: "User"
111
+ attributes:
112
+ user:
113
+ current_sign_in_at: "Signed in at"
114
+ email: "Email"
115
+ password: "Password"
116
116
  last_sign_in_at: "Last signed in at"
@@ -321,7 +321,7 @@ en:
321
321
  content: "Welcome to Roroas installation process, in order for you to get started on the most extendable and boundless Ruby On Rails content management system we need a few details..."
322
322
  content_two: "Before you are let loose we just need to create you some login details and then we really are done!"
323
323
  theme_issues:
324
- content: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam molestie magna eget vulputate venenatis. Maecenas eu ligula erat. Mauris bibendum tempus mattis. Nullam nec fermentum mi, in posuere sem. Quisque a vestibulum lacus. Proin leo libero"
324
+ content: "There seems to be a few files missing, in order to get started on your theme please make sure that all three files below exist in your theme folder."
325
325
  no_active: "You currently do not have an active theme"
326
326
  no_active_ctoa: "Please create a theme and activate it in the admin panel to get started"
327
327
  menus:
data/config/routes.rb CHANGED
@@ -1,96 +1,96 @@
1
- Roroacms::Engine.routes.draw do
2
-
3
- devise_for :admins, class_name: "Roroacms::Admin", :path => "admin", :path_names => { :sign_in => 'login', :sign_out => 'logout', :password => 'reset', :confirmation => 'verification', :unlock => 'unblock', :registration => 'register', :sign_up => 'register' }, skip: :registrations, module: :devise
4
-
5
- devise_scope :admin do
6
- get "admin/login", :to => "devise/sessions#new"
7
- get "admin/logout", :to => "devise/sessions#new"
8
- end
9
-
10
- resources :pages
11
- resources :comments
12
-
13
- resources :setup do
14
- member { get 'tour_complete' }
15
- collection do
16
- get 'administrator'
17
- post 'create_user'
18
- post 'tour_complete'
19
- end
20
- end
21
-
22
- namespace :admin do
23
- get '', to: 'dashboard#index'
24
- get 'trash', to: 'trash#index', as: 'trash'
25
- get 'article/categories', to: 'terms#categories', as: 'article_categories'
26
- get 'article/tags', to: 'terms#tags', as: 'article_tags'
27
-
28
- resources :users, :themes
29
-
30
-
31
- resources :administrators, :except => [:show]
32
-
33
- resources :comments do
34
- member {get 'mark_as_spam'}
35
- collection do
36
- post 'bulk_update'
37
- end
38
- end
39
-
40
- resources :menus do
41
-
42
- collection do
43
- post 'save_menu'
44
- post 'ajax_dropbox'
45
- end
46
-
47
- end
48
-
49
- resources :revisions, :only=> [:edit, :restore] do
50
- member {get 'restore'}
51
- end
52
-
53
- resources :terms do
54
- collection do
55
- post 'bulk_update'
56
- end
57
- end
58
-
59
-
60
- resources :articles do
61
- collection do
62
- post 'bulk_update'
63
- post 'autosave_create'
64
- post 'create_additional_data'
65
- post 'autosave'
66
- put 'autosave_update'
67
- end
68
- end
69
-
70
- resources :pages do
71
- collection do
72
- post 'bulk_update'
73
- post 'infinate_scroll'
74
- end
75
- end
76
-
77
- resources :trash do
78
- collection do
79
- get 'empty_articles'
80
- post 'deal_with_form'
81
- end
82
- end
83
-
84
- resources :settings do
85
- post :update_general
86
- collection do
87
- post 'create_user_group'
88
- end
89
- end
90
-
91
- end
92
-
93
- root to: 'pages#index'
94
- match '/*slug', :to => 'pages#dynamic_page', via: [:get], :constraints => lambda{|req| req.path !~ /\.(png|jpg|js|css)$/ }
95
-
96
- end
1
+ Roroacms::Engine.routes.draw do
2
+
3
+ devise_for :admins, class_name: "Roroacms::Admin", :path => "admin", :path_names => { :sign_in => 'login', :sign_out => 'logout', :password => 'reset', :confirmation => 'verification', :unlock => 'unblock', :registration => 'register', :sign_up => 'register' }, skip: :registrations, module: :devise
4
+
5
+ devise_scope :admin do
6
+ get "admin/login", :to => "devise/sessions#new"
7
+ get "admin/logout", :to => "devise/sessions#new"
8
+ end
9
+
10
+ resources :pages
11
+ resources :comments
12
+
13
+ resources :setup do
14
+ member { get 'tour_complete' }
15
+ collection do
16
+ get 'administrator'
17
+ post 'create_user'
18
+ post 'tour_complete'
19
+ end
20
+ end
21
+
22
+ namespace :admin do
23
+ get '', to: 'dashboard#index'
24
+ get 'trash', to: 'trash#index', as: 'trash'
25
+ get 'article/categories', to: 'terms#categories', as: 'article_categories'
26
+ get 'article/tags', to: 'terms#tags', as: 'article_tags'
27
+
28
+ resources :users, :themes
29
+
30
+
31
+ resources :administrators, :except => [:show]
32
+
33
+ resources :comments do
34
+ member {get 'mark_as_spam'}
35
+ collection do
36
+ post 'bulk_update'
37
+ end
38
+ end
39
+
40
+ resources :menus do
41
+
42
+ collection do
43
+ post 'save_menu'
44
+ post 'ajax_dropbox'
45
+ end
46
+
47
+ end
48
+
49
+ resources :revisions, :only=> [:edit, :restore] do
50
+ member {get 'restore'}
51
+ end
52
+
53
+ resources :terms do
54
+ collection do
55
+ post 'bulk_update'
56
+ end
57
+ end
58
+
59
+
60
+ resources :articles do
61
+ collection do
62
+ post 'bulk_update'
63
+ post 'autosave_create'
64
+ post 'create_additional_data'
65
+ post 'autosave'
66
+ put 'autosave_update'
67
+ end
68
+ end
69
+
70
+ resources :pages do
71
+ collection do
72
+ post 'bulk_update'
73
+ post 'infinate_scroll'
74
+ end
75
+ end
76
+
77
+ resources :trash do
78
+ collection do
79
+ get 'empty_articles'
80
+ post 'deal_with_form'
81
+ end
82
+ end
83
+
84
+ resources :settings do
85
+ post :update_general
86
+ collection do
87
+ post 'create_user_group'
88
+ end
89
+ end
90
+
91
+ end
92
+
93
+ root to: 'pages#index'
94
+ match '/*slug', :to => 'pages#dynamic_page', via: [:get], :constraints => lambda{|req| req.path !~ /\.(png|jpg|js|css)$/ }
95
+
96
+ end
@@ -1,44 +1,44 @@
1
- class AddAdmins < ActiveRecord::Migration
2
-
3
- def self.up
4
-
5
- create_table(:roroacms_admins) do |t|
6
- t.string "email", default: "", null: false
7
- t.text "password_digest"
8
- t.text "description"
9
- t.string "first_name"
10
- t.string "last_name"
11
- t.string "username"
12
- t.string "access_level"
13
- t.text "avatar"
14
- t.text "cover_picture"
15
- t.string "overlord", limit: 1, default: "Y"
16
- t.string "encrypted_password", default: "", null: false
17
- t.string "reset_password_token"
18
- t.datetime "reset_password_sent_at"
19
- t.datetime "remember_created_at"
20
- t.integer "sign_in_count", default: 0, null: false
21
- t.datetime "current_sign_in_at"
22
- t.datetime "last_sign_in_at"
23
- t.string "current_sign_in_ip"
24
- t.string "last_sign_in_ip"
25
- t.integer "failed_attempts", default: 0, null: false
26
- t.string "unlock_token"
27
- t.datetime "locked_at"
28
- t.datetime "created_at", null: false
29
- t.datetime "updated_at", null: false
30
- end
31
-
32
- add_index "roroacms_admins", ["email"], name: "index_admins_on_email", unique: true, using: :btree
33
- add_index "roroacms_admins", ["reset_password_token"], name: "index_admins_on_reset_password_token", unique: true, using: :btree
34
- add_index "roroacms_admins", ["username"], name: "unique_username", unique: true, using: :btree
35
-
36
- end
37
-
38
- def self.down
39
-
40
- drop_table :roroacms_admins
41
-
42
- end
43
-
44
- end
1
+ class AddAdmins < ActiveRecord::Migration
2
+
3
+ def self.up
4
+
5
+ create_table(:roroacms_admins) do |t|
6
+ t.string "email", default: "", null: false
7
+ t.text "password_digest"
8
+ t.text "description"
9
+ t.string "first_name"
10
+ t.string "last_name"
11
+ t.string "username"
12
+ t.string "access_level"
13
+ t.text "avatar"
14
+ t.text "cover_picture"
15
+ t.string "overlord", limit: 1, default: "Y"
16
+ t.string "encrypted_password", default: "", null: false
17
+ t.string "reset_password_token"
18
+ t.datetime "reset_password_sent_at"
19
+ t.datetime "remember_created_at"
20
+ t.integer "sign_in_count", default: 0, null: false
21
+ t.datetime "current_sign_in_at"
22
+ t.datetime "last_sign_in_at"
23
+ t.string "current_sign_in_ip"
24
+ t.string "last_sign_in_ip"
25
+ t.integer "failed_attempts", default: 0, null: false
26
+ t.string "unlock_token"
27
+ t.datetime "locked_at"
28
+ t.datetime "created_at", null: false
29
+ t.datetime "updated_at", null: false
30
+ end
31
+
32
+ add_index "roroacms_admins", ["email"], name: "index_admins_on_email", unique: true, using: :btree
33
+ add_index "roroacms_admins", ["reset_password_token"], name: "index_admins_on_reset_password_token", unique: true, using: :btree
34
+ add_index "roroacms_admins", ["username"], name: "unique_username", unique: true, using: :btree
35
+
36
+ end
37
+
38
+ def self.down
39
+
40
+ drop_table :roroacms_admins
41
+
42
+ end
43
+
44
+ end
@@ -1,31 +1,31 @@
1
- class AddRoroacmsComments < ActiveRecord::Migration
2
-
3
- def self.up
4
-
5
- create_table(:roroacms_comments) do |t|
6
- t.integer "post_id"
7
- t.text "author"
8
- t.text "email"
9
- t.text "website"
10
- t.text "comment"
11
- t.text "comment_approved"
12
- t.text "parent_id"
13
- t.datetime "submitted_on"
14
- t.datetime "created_at", null: false
15
- t.datetime "updated_at", null: false
16
- t.string "is_spam", limit: 1, default: "N"
17
- t.string "ancestry"
18
- end
19
-
20
- add_index "roroacms_comments", ["ancestry"], name: "index_comments_on_ancestry", using: :btree
21
-
22
- end
23
-
24
- def self.down
25
-
26
- drop_table :roroacms_comments
27
-
28
- end
29
-
30
-
31
- end
1
+ class AddRoroacmsComments < ActiveRecord::Migration
2
+
3
+ def self.up
4
+
5
+ create_table(:roroacms_comments) do |t|
6
+ t.integer "post_id"
7
+ t.text "author"
8
+ t.text "email"
9
+ t.text "website"
10
+ t.text "comment"
11
+ t.text "comment_approved"
12
+ t.text "parent_id"
13
+ t.datetime "submitted_on"
14
+ t.datetime "created_at", null: false
15
+ t.datetime "updated_at", null: false
16
+ t.string "is_spam", limit: 1, default: "N"
17
+ t.string "ancestry"
18
+ end
19
+
20
+ add_index "roroacms_comments", ["ancestry"], name: "index_comments_on_ancestry", using: :btree
21
+
22
+ end
23
+
24
+ def self.down
25
+
26
+ drop_table :roroacms_comments
27
+
28
+ end
29
+
30
+
31
+ end
@@ -1,24 +1,24 @@
1
- class AddRoroacmsMenuOptions < ActiveRecord::Migration
2
-
3
- def self.up
4
-
5
- create_table(:roroacms_menu_options) do |t|
6
- t.integer "menu_id"
7
- t.integer "option_id"
8
- t.integer "parent_id"
9
- t.string "data_type"
10
- t.integer "lft"
11
- t.integer "rgt"
12
- t.string "label"
13
- t.text "custom_data"
14
- end
15
-
16
- end
17
-
18
- def self.down
19
-
20
- drop_table :roroacms_menu_options
21
-
22
- end
23
-
24
- end
1
+ class AddRoroacmsMenuOptions < ActiveRecord::Migration
2
+
3
+ def self.up
4
+
5
+ create_table(:roroacms_menu_options) do |t|
6
+ t.integer "menu_id"
7
+ t.integer "option_id"
8
+ t.integer "parent_id"
9
+ t.string "data_type"
10
+ t.integer "lft"
11
+ t.integer "rgt"
12
+ t.string "label"
13
+ t.text "custom_data"
14
+ end
15
+
16
+ end
17
+
18
+ def self.down
19
+
20
+ drop_table :roroacms_menu_options
21
+
22
+ end
23
+
24
+ end