spud_inquiries 0.9.5 → 1.0.0.rc1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c4df14ad9dcf4adbe3a580cd7e1666d469226dbb
4
- data.tar.gz: 10ad13fffe5844ff578a93a5c834998c1ad4bbbf
3
+ metadata.gz: 5efb96f2c6a755028ac4235afbc55ddb4109b8aa
4
+ data.tar.gz: 979f7753f991196c3008507727b7191495a28eb8
5
5
  SHA512:
6
- metadata.gz: 666f2b3e2c8251fcc1ae86884c6220f968138ddb01a8d94c11d9ca1d69faaadfdc1c9ec245beb3c0e066c1c8bffae545fe83cec3b984c3f23c11770689333b65
7
- data.tar.gz: d29d47b909260c3e7ba2e827a77be013dc7dd8e05bf8a8cc512b433203c4d3c659b54790993d385291621c28c02c26d7a9576c08cab291abdb78b12bf50c9fb6
6
+ metadata.gz: 8acbaac50154d828a60e505723a91f6a46a9fcd966270e062517fa618a40352be4bacbffbc37941512a8961979daa6566eebd5e41651dcc303cad4c1a5654db4
7
+ data.tar.gz: d38aea2e196a83a643476159a465356e0b60a61c43fee4c792e8faa37174bcf19de59ae9e7b6391c8b88618a858097a39b9cb3fcf6262f79e5f7d07a0995fa03
@@ -1,6 +1,4 @@
1
1
  class ContactsController < ApplicationController
2
- caches_action :show,:if => Proc.new { |c| Spud::Inquiries.enable_action_caching }
3
- caches_action :thankyou,:if => Proc.new { |c| Spud::Inquiries.enable_action_caching }
4
2
  skip_before_filter :verify_authenticity_token
5
3
  layout Spud::Inquiries.base_layout
6
4
  respond_to :html,:js
@@ -1,14 +1,14 @@
1
1
  class Spud::Admin::InquiryFormsController < Spud::Admin::ApplicationController
2
- layout 'spud/admin/detail'
3
2
  belongs_to_spud_app :inquiries, :title => "Inquiry Forms"
4
- cache_sweeper :inquiry_sweeper, :only => [:update,:destroy,:create]
3
+ layout 'spud/admin/detail'
4
+ before_filter :load_form,:only => [:edit,:update,:show,:destroy]
5
+
5
6
  add_breadcrumb "Inquiries", :spud_admin_inquiries_path
6
7
  add_breadcrumb "Forms", :spud_admin_inquiry_forms_path
7
8
  add_breadcrumb "New", '',:only => [:new, :create]
8
9
  add_breadcrumb "Edit", '',:only => [:edit, :update]
9
- before_filter :load_form,:only => [:edit,:update,:show,:destroy]
10
- def index
11
10
 
11
+ def index
12
12
  @inquiry_forms = SpudInquiryForm.order(:name).paginate :page => params[:page]
13
13
  respond_with @inquiry_forms
14
14
  end
@@ -19,7 +19,7 @@ class Spud::Admin::InquiryFormsController < Spud::Admin::ApplicationController
19
19
  end
20
20
 
21
21
  def create
22
- @inquiry_form = SpudInquiryForm.new(params[:spud_inquiry_form])
22
+ @inquiry_form = SpudInquiryForm.new(inquiry_form_params)
23
23
  flash[:notice] = "Form saved successfully!" if @inquiry_form.save
24
24
 
25
25
  respond_with @inquiry_form,:location => spud_admin_inquiry_forms_url
@@ -30,7 +30,7 @@ class Spud::Admin::InquiryFormsController < Spud::Admin::ApplicationController
30
30
  end
31
31
 
32
32
  def update
33
- flash[:notice] = "Form saved successfully!" if @inquiry_form.update_attributes(params[:spud_inquiry_form])
33
+ flash[:notice] = "Form saved successfully!" if @inquiry_form.update_attributes(inquiry_form_params)
34
34
  if Spud::Inquiries.enable_action_caching
35
35
  Rails.cache.clear
36
36
  end
@@ -52,4 +52,8 @@ private
52
52
  redirect_to spud_admin_inquiry_forms_url() and return
53
53
  end
54
54
  end
55
+
56
+ def inquiry_form_params
57
+ params.require(:spud_inquiry_form).permit(:name,:url_name,:recipients,:content,:subject,{:spud_inquiry_form_fields_attributes => [:id,:name,:options,:default_value,:field_type,:spud_inquiry_form_id,:field_order,:required, :placeholder, :class_name,:_destroy]}, :created_at, :updated_at, :thank_you_content, :submit_title)
58
+ end
55
59
  end
@@ -1,6 +1,5 @@
1
1
  class Spud::Inquiries::SitemapsController < Spud::ApplicationController
2
2
  respond_to :xml
3
- caches_page :show,:expires_in => 1.day
4
3
  def show
5
4
  @forms = SpudInquiryForm.all
6
5
  respond_with @forms
@@ -3,7 +3,7 @@ class SpudInquiry < ActiveRecord::Base
3
3
  has_many :spud_inquiry_fields, :dependent => :destroy
4
4
  belongs_to :spud_inquiry_form
5
5
  accepts_nested_attributes_for :spud_inquiry_fields, :reject_if => lambda { |a| a[:name].blank? }
6
- attr_accessible :spud_inquiry_form_id,:spud_inquiry_fields
6
+ # attr_accessible :spud_inquiry_form_id,:spud_inquiry_fields
7
7
 
8
8
 
9
9
  def email
@@ -1,5 +1,5 @@
1
1
  class SpudInquiryField < ActiveRecord::Base
2
2
  belongs_to :spud_inquiry
3
- attr_accessible :name,:value,:spud_inquiry_id, :field_name
3
+ # attr_accessible :name,:value,:spud_inquiry_id, :field_name
4
4
  # validates :spud_inquiry, :presence => true
5
5
  end
@@ -1,17 +1,34 @@
1
1
  class SpudInquiryForm < ActiveRecord::Base
2
2
  has_many :spud_inquiries, :dependent => :nullify
3
- has_many :spud_inquiry_form_fields,:dependent => :destroy,:order => "field_order ASC"
3
+ has_many :spud_inquiry_form_fields, -> { order :field_order},:dependent => :destroy
4
4
 
5
5
  accepts_nested_attributes_for :spud_inquiry_form_fields, :reject_if => lambda { |a| a[:name].blank? }, :allow_destroy => true
6
6
 
7
7
  validates :name,:presence => true,:uniqueness => true
8
8
  validates :url_name,:presence => true, :uniqueness => true
9
9
  before_validation :generate_url_name
10
- attr_accessible :name,:url_name,:recipients,:content,:subject,:spud_inquiry_form_fields_attributes, :created_at, :updated_at, :thank_you_content, :submit_title
10
+ after_save :expire_cache
11
+ after_destroy :expire_cache
12
+ # attr_accessible :name,:url_name,:recipients,:content,:subject,:spud_inquiry_form_fields_attributes, :created_at, :updated_at, :thank_you_content, :submit_title
11
13
 
12
14
  def generate_url_name
13
15
  if !self.name.blank?
14
16
  self.url_name = self.name.gsub(/[^a-zA-Z0-9\ ]/," ").gsub(/\ \ +/," ").gsub(/\ /,"-").downcase
15
17
  end
16
18
  end
19
+
20
+ def expire_cache
21
+ if !defined?(SpudPageLiquidTag)
22
+ return
23
+ end
24
+ # Now Time to Update Parent Entries
25
+ old_name = self.name_was
26
+ values = [self.name]
27
+ values << old_name if !old_name.blank?
28
+
29
+
30
+ SpudPageLiquidTag.where(:tag_name => "inquiry",:value => values).includes(:attachment).each do |tag|
31
+ partial = tag.touch
32
+ end
33
+ end
17
34
  end
@@ -1,9 +1,9 @@
1
1
  class SpudInquiryFormField < ActiveRecord::Base
2
- belongs_to :spud_inquiry_form
2
+ belongs_to :spud_inquiry_form, :touch => true
3
3
  validates :name,:presence => true
4
4
  validates :field_type,:presence => true
5
5
  # validates :spud_inquiry_form_id, :presence => true
6
- attr_accessible :name,:options,:default_value,:field_type,:spud_inquiry_form_id,:field_order,:required, :placeholder, :class_name
6
+ # attr_accessible :name,:options,:default_value,:field_type,:spud_inquiry_form_id,:field_order,:required, :placeholder, :class_name
7
7
 
8
8
  before_save :update_field_name
9
9
 
@@ -1,9 +1,14 @@
1
1
  <%=content_for :detail do%>
2
- <h3>Form: <%=@inquiry.spud_inquiry_form.blank? ? "No Form" : @inquiry.spud_inquiry_form.name%>
3
- <p><strong>From:</strong> <%=link_to @inquiry.email,"mailto:#{@inquiry.email}"%></p>
4
- <%@inquiry.spud_inquiry_fields.each do |field|%>
5
- <p><strong><%=field.name%></strong>
2
+ <h3>Form: <%=@inquiry.spud_inquiry_form.blank? ? "No Form" : @inquiry.spud_inquiry_form.name%></h3>
3
+ <dl class="dl-horizontal">
4
+ <dt>From</dt>
5
+ <dd><%=link_to @inquiry.email,"mailto:#{@inquiry.email}"%></dd>
6
+ <%@inquiry.spud_inquiry_fields.each do |field|%>
7
+ <dt><%=field.name%></dt>
8
+ <dd>
6
9
  <%=field.value%>
7
- </p>
10
+ </dd>
8
11
  <%end%>
9
- <%end%>
12
+ </dl>
13
+
14
+ <%end%>
data/config/routes.rb CHANGED
@@ -9,9 +9,8 @@ Rails.application.routes.draw do
9
9
  end
10
10
  end
11
11
  post "/contact/inquire" => "contacts#inquire"
12
- match "/contact/thankyou" => "contacts#thankyou"
12
+ get "/contact/thankyou" => "contacts#thankyou"
13
13
  if Spud::Inquiries.enable_routes
14
- match "/contact" => "contacts#show", :as => :contact
15
- match "/contact/:id" => "contacts#show", :as => :contact
14
+ get "/contact(/:id)" => "contacts#show", :as => :contact
16
15
  end
17
16
  end
@@ -1,5 +1,5 @@
1
1
  module Spud
2
2
  module Inquiries
3
- VERSION = "0.9.5"
3
+ VERSION = "1.0.0.rc1"
4
4
  end
5
5
  end
@@ -11,8 +11,7 @@ Dummy::Application.configure do
11
11
  config.serve_static_assets = true
12
12
  config.static_cache_control = "public, max-age=3600"
13
13
 
14
- # Log error messages when you accidentally call methods on nil
15
- config.whiny_nils = true
14
+ config.eager_load = false
16
15
 
17
16
  # Show full error reports and disable caching
18
17
  config.consider_all_requests_local = true
@@ -29,9 +28,6 @@ Dummy::Application.configure do
29
28
  # ActionMailer::Base.deliveries array.
30
29
  config.action_mailer.delivery_method = :test
31
30
 
32
- # Raise exception on mass assignment protection for Active Record models
33
- config.active_record.mass_assignment_sanitizer = :strict
34
-
35
31
  # Print deprecation notices to the stderr
36
32
  config.active_support.deprecation = :stderr
37
33
  end
@@ -9,102 +9,106 @@
9
9
  # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
10
  # you'll amass, the slower it'll run and the greater likelihood for issues).
11
11
  #
12
- # It's strongly recommended to check this file into your version control system.
12
+ # It's strongly recommended that you check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(:version => 20130627121030) do
14
+ ActiveRecord::Schema.define(version: 20131204163221) do
15
15
 
16
- create_table "spud_admin_permissions", :force => true do |t|
16
+ create_table "spud_admin_permissions", force: true do |t|
17
17
  t.integer "user_id"
18
18
  t.string "name"
19
19
  t.boolean "access"
20
- t.datetime "created_at", :null => false
21
- t.datetime "updated_at", :null => false
20
+ t.datetime "created_at", null: false
21
+ t.datetime "updated_at", null: false
22
22
  t.string "scope"
23
23
  end
24
24
 
25
- create_table "spud_inquiries", :force => true do |t|
25
+ create_table "spud_inquiries", force: true do |t|
26
26
  t.string "email"
27
- t.datetime "created_at", :null => false
28
- t.datetime "updated_at", :null => false
27
+ t.datetime "created_at", null: false
28
+ t.datetime "updated_at", null: false
29
29
  t.integer "spud_inquiry_form_id"
30
30
  t.text "recipients"
31
31
  t.string "subject"
32
- t.boolean "marked_as_read", :default => false
32
+ t.boolean "marked_as_read", default: false
33
33
  end
34
34
 
35
- add_index "spud_inquiries", ["marked_as_read"], :name => "idx_inquiry_read"
36
- add_index "spud_inquiries", ["spud_inquiry_form_id"], :name => "idx_inquiry_form"
35
+ add_index "spud_inquiries", ["marked_as_read"], name: "idx_inquiry_read", using: :btree
36
+ add_index "spud_inquiries", ["spud_inquiry_form_id"], name: "idx_inquiry_form", using: :btree
37
37
 
38
- create_table "spud_inquiry_fields", :force => true do |t|
38
+ create_table "spud_inquiry_fields", force: true do |t|
39
39
  t.string "name"
40
40
  t.text "value"
41
41
  t.integer "spud_inquiry_id"
42
- t.datetime "created_at", :null => false
43
- t.datetime "updated_at", :null => false
42
+ t.datetime "created_at", null: false
43
+ t.datetime "updated_at", null: false
44
+ t.string "field_name"
44
45
  end
45
46
 
46
- add_index "spud_inquiry_fields", ["spud_inquiry_id"], :name => "inquiry_field_parent_id"
47
+ add_index "spud_inquiry_fields", ["spud_inquiry_id"], name: "inquiry_field_parent_id", using: :btree
47
48
 
48
- create_table "spud_inquiry_form_fields", :force => true do |t|
49
+ create_table "spud_inquiry_form_fields", force: true do |t|
49
50
  t.integer "spud_inquiry_form_id"
50
51
  t.string "field_type"
51
52
  t.string "name"
52
53
  t.text "options"
53
54
  t.string "default_value"
54
- t.datetime "created_at", :null => false
55
- t.datetime "updated_at", :null => false
55
+ t.datetime "created_at", null: false
56
+ t.datetime "updated_at", null: false
56
57
  t.integer "field_order"
57
58
  t.boolean "required"
58
59
  t.string "placeholder"
60
+ t.string "field_name"
61
+ t.string "class_name"
59
62
  end
60
63
 
61
- add_index "spud_inquiry_form_fields", ["field_order"], :name => "form_field_order"
64
+ add_index "spud_inquiry_form_fields", ["field_order"], name: "form_field_order", using: :btree
62
65
 
63
- create_table "spud_inquiry_forms", :force => true do |t|
66
+ create_table "spud_inquiry_forms", force: true do |t|
64
67
  t.string "name"
65
68
  t.text "content"
66
- t.datetime "created_at", :null => false
67
- t.datetime "updated_at", :null => false
69
+ t.datetime "created_at", null: false
70
+ t.datetime "updated_at", null: false
68
71
  t.text "recipients"
69
72
  t.string "subject"
70
73
  t.string "url_name"
71
74
  t.text "thank_you_content"
75
+ t.string "submit_title"
72
76
  end
73
77
 
74
- add_index "spud_inquiry_forms", ["url_name"], :name => "idx_form_url_name"
78
+ add_index "spud_inquiry_forms", ["url_name"], name: "idx_form_url_name", using: :btree
75
79
 
76
- create_table "spud_user_settings", :force => true do |t|
80
+ create_table "spud_user_settings", force: true do |t|
77
81
  t.integer "spud_user_id"
78
82
  t.string "key"
79
83
  t.string "value"
80
- t.datetime "created_at", :null => false
81
- t.datetime "updated_at", :null => false
84
+ t.datetime "created_at", null: false
85
+ t.datetime "updated_at", null: false
82
86
  end
83
87
 
84
- create_table "spud_users", :force => true do |t|
88
+ create_table "spud_users", force: true do |t|
85
89
  t.string "first_name"
86
90
  t.string "last_name"
87
91
  t.boolean "super_admin"
88
- t.string "login", :null => false
89
- t.string "email", :null => false
90
- t.string "crypted_password", :null => false
91
- t.string "password_salt", :null => false
92
- t.string "persistence_token", :null => false
93
- t.string "single_access_token", :null => false
94
- t.string "perishable_token", :null => false
95
- t.integer "login_count", :default => 0, :null => false
96
- t.integer "failed_login_count", :default => 0, :null => false
92
+ t.string "login", null: false
93
+ t.string "email", null: false
94
+ t.string "crypted_password", null: false
95
+ t.string "password_salt", null: false
96
+ t.string "persistence_token", null: false
97
+ t.string "single_access_token", null: false
98
+ t.string "perishable_token", null: false
99
+ t.integer "login_count", default: 0, null: false
100
+ t.integer "failed_login_count", default: 0, null: false
97
101
  t.datetime "last_request_at"
98
102
  t.datetime "current_login_at"
99
103
  t.datetime "last_login_at"
100
104
  t.string "current_login_ip"
101
105
  t.string "last_login_ip"
102
- t.datetime "created_at", :null => false
103
- t.datetime "updated_at", :null => false
106
+ t.datetime "created_at", null: false
107
+ t.datetime "updated_at", null: false
104
108
  t.string "time_zone"
105
109
  end
106
110
 
107
- add_index "spud_users", ["email"], :name => "index_spud_users_on_email"
108
- add_index "spud_users", ["login"], :name => "index_spud_users_on_login"
111
+ add_index "spud_users", ["email"], name: "index_spud_users_on_email", using: :btree
112
+ add_index "spud_users", ["login"], name: "index_spud_users_on_login", using: :btree
109
113
 
110
114
  end
@@ -20,3 +20,69 @@ Migrating to AddThankYouContentToSpudInquiryForm (20121228145215)
20
20
   (0.3ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`
21
21
  Connecting to database specified by database.yml
22
22
  Connecting to database specified by database.yml
23
+ ActiveRecord::SchemaMigration Load (2.1ms) SELECT `schema_migrations`.* FROM `schema_migrations`
24
+ Migrating to AddPlaceholderToSpudInquiryFormFields (20130627121030)
25
+  (27.3ms) ALTER TABLE `spud_inquiry_form_fields` ADD `placeholder` varchar(255)
26
+  (0.1ms) BEGIN
27
+ SQL (0.2ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20130627121030')
28
+  (0.4ms) COMMIT
29
+ Migrating to AddSubmitTitleToSpudInquiryForm (20131111143656)
30
+  (14.2ms) ALTER TABLE `spud_inquiry_forms` ADD `submit_title` varchar(255)
31
+  (0.1ms) BEGIN
32
+ SQL (0.2ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20131111143656')
33
+  (0.4ms) COMMIT
34
+ Migrating to AddFieldNameToSpudInquiryFormFields (20131111143945)
35
+  (8.3ms) ALTER TABLE `spud_inquiry_form_fields` ADD `field_name` varchar(255)
36
+  (0.1ms) BEGIN
37
+ SQL (0.2ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20131111143945')
38
+  (0.6ms) COMMIT
39
+ Migrating to AddClassNameToSpudInquiryFormFields (20131111144731)
40
+  (8.1ms) ALTER TABLE `spud_inquiry_form_fields` ADD `class_name` varchar(255)
41
+  (0.1ms) BEGIN
42
+ SQL (0.2ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20131111144731')
43
+  (0.5ms) COMMIT
44
+ Migrating to AddFieldNameToSpudInquiryFields (20131204163221)
45
+  (10.9ms) ALTER TABLE `spud_inquiry_fields` ADD `field_name` varchar(255)
46
+  (0.1ms) BEGIN
47
+ SQL (0.2ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20131204163221')
48
+  (0.4ms) COMMIT
49
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT `schema_migrations`.* FROM `schema_migrations`
50
+  (22.8ms) DROP DATABASE IF EXISTS `spud_inquiries_test`
51
+  (0.4ms) CREATE DATABASE `spud_inquiries_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
52
+  (24.6ms) CREATE TABLE `spud_admin_permissions` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `user_id` int(11), `name` varchar(255), `access` tinyint(1), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `scope` varchar(255)) ENGINE=InnoDB
53
+  (8.4ms) CREATE TABLE `spud_inquiries` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `email` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `spud_inquiry_form_id` int(11), `recipients` text, `subject` varchar(255), `marked_as_read` tinyint(1) DEFAULT 0) ENGINE=InnoDB
54
+  (9.3ms) CREATE INDEX `idx_inquiry_read` USING btree ON `spud_inquiries` (`marked_as_read`) 
55
+  (8.7ms) CREATE INDEX `idx_inquiry_form` USING btree ON `spud_inquiries` (`spud_inquiry_form_id`)
56
+  (16.1ms) CREATE TABLE `spud_inquiry_fields` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `value` text, `spud_inquiry_id` int(11), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `field_name` varchar(255)) ENGINE=InnoDB
57
+  (8.1ms) CREATE INDEX `inquiry_field_parent_id` USING btree ON `spud_inquiry_fields` (`spud_inquiry_id`)
58
+  (8.9ms) CREATE TABLE `spud_inquiry_form_fields` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `spud_inquiry_form_id` int(11), `field_type` varchar(255), `name` varchar(255), `options` text, `default_value` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `field_order` int(11), `required` tinyint(1), `placeholder` varchar(255), `field_name` varchar(255), `class_name` varchar(255)) ENGINE=InnoDB
59
+  (10.9ms) CREATE INDEX `form_field_order` USING btree ON `spud_inquiry_form_fields` (`field_order`)
60
+  (6.7ms) CREATE TABLE `spud_inquiry_forms` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `content` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `recipients` text, `subject` varchar(255), `url_name` varchar(255), `thank_you_content` text, `submit_title` varchar(255)) ENGINE=InnoDB
61
+  (10.3ms) CREATE INDEX `idx_form_url_name` USING btree ON `spud_inquiry_forms` (`url_name`)
62
+  (7.8ms) CREATE TABLE `spud_user_settings` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `spud_user_id` int(11), `key` varchar(255), `value` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
63
+  (7.2ms) CREATE TABLE `spud_users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `first_name` varchar(255), `last_name` varchar(255), `super_admin` tinyint(1), `login` varchar(255) NOT NULL, `email` varchar(255) NOT NULL, `crypted_password` varchar(255) NOT NULL, `password_salt` varchar(255) NOT NULL, `persistence_token` varchar(255) NOT NULL, `single_access_token` varchar(255) NOT NULL, `perishable_token` varchar(255) NOT NULL, `login_count` int(11) DEFAULT 0 NOT NULL, `failed_login_count` int(11) DEFAULT 0 NOT NULL, `last_request_at` datetime, `current_login_at` datetime, `last_login_at` datetime, `current_login_ip` varchar(255), `last_login_ip` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `time_zone` varchar(255)) ENGINE=InnoDB
64
+  (8.5ms) CREATE INDEX `index_spud_users_on_email` USING btree ON `spud_users` (`email`) 
65
+  (16.0ms) CREATE INDEX `index_spud_users_on_login` USING btree ON `spud_users` (`login`)
66
+  (6.2ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
67
+  (14.2ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
68
+  (0.2ms) SELECT version FROM `schema_migrations`
69
+  (0.6ms) INSERT INTO `schema_migrations` (version) VALUES ('20131204163221')
70
+  (0.5ms) INSERT INTO `schema_migrations` (version) VALUES ('20120610131537')
71
+  (0.6ms) INSERT INTO `schema_migrations` (version) VALUES ('20120610131538')
72
+  (0.6ms) INSERT INTO `schema_migrations` (version) VALUES ('20120610131539')
73
+  (0.7ms) INSERT INTO `schema_migrations` (version) VALUES ('20120610131540')
74
+  (0.6ms) INSERT INTO `schema_migrations` (version) VALUES ('20120610131541')
75
+  (0.5ms) INSERT INTO `schema_migrations` (version) VALUES ('20120117133405')
76
+  (0.8ms) INSERT INTO `schema_migrations` (version) VALUES ('20120117133412')
77
+  (0.5ms) INSERT INTO `schema_migrations` (version) VALUES ('20120121194439')
78
+  (0.5ms) INSERT INTO `schema_migrations` (version) VALUES ('20120121194447')
79
+  (0.5ms) INSERT INTO `schema_migrations` (version) VALUES ('20120122173829')
80
+  (0.5ms) INSERT INTO `schema_migrations` (version) VALUES ('20120126132407')
81
+  (0.5ms) INSERT INTO `schema_migrations` (version) VALUES ('20120126132522')
82
+  (0.5ms) INSERT INTO `schema_migrations` (version) VALUES ('20120127023335')
83
+  (0.5ms) INSERT INTO `schema_migrations` (version) VALUES ('20120413124900')
84
+  (0.4ms) INSERT INTO `schema_migrations` (version) VALUES ('20121228145215')
85
+  (0.5ms) INSERT INTO `schema_migrations` (version) VALUES ('20130627121030')
86
+  (0.6ms) INSERT INTO `schema_migrations` (version) VALUES ('20131111143656')
87
+  (0.5ms) INSERT INTO `schema_migrations` (version) VALUES ('20131111143945')
88
+  (0.5ms) INSERT INTO `schema_migrations` (version) VALUES ('20131111144731')