nav_lynx 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +1 -1
- data/README.md +29 -1
- data/Rakefile +1 -0
- data/app/helpers/nav_link_helper.rb +57 -46
- data/lib/nav_lynx/engine.rb +6 -0
- data/lib/nav_lynx/version.rb +1 -1
- data/lib/nav_lynx.rb +3 -2
- data/spec/dummy/config/application.rb +1 -11
- data/spec/dummy/config/boot.rb +3 -7
- data/spec/dummy/config/environments/development.rb +0 -7
- data/spec/dummy/config/environments/test.rb +2 -3
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +139 -0
- data/spec/dummy/log/test.log +1818 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/061366614f53b2e629f4ce5af7376503 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/12e93292435b9fd9a8ead1d08efcc40b +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/16813814f2e3c416d514746de8977f71 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/20bdd97a4de949dfc1ccc5b4881d5de6 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/52ef98542a240e988c164c670087be82 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/8528046f7875341a083dca3a0349725a +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/a45664b91391c11181b20e5903d4aa8f +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/fe314a8ef926518b95394d23d7967ac4 +0 -0
- data/spec/helpers/nav_link_helper_spec.rb +44 -26
- data/spec/spec_helper.rb +1 -0
- metadata +67 -7
data/MIT-LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,6 @@
|
|
1
|
-
|
1
|
+
# NavLYNX
|
2
|
+
|
3
|
+
[![Code Climate](https://codeclimate.com/github/vigetlabs/nav_lynx.png)](https://codeclimate.com/github/vigetlabs/nav_lynx)
|
2
4
|
|
3
5
|
The nav_link_to helper works just like the standard Rails link_to helper, but adds a 'selected' class to your link (or its wrapper) if certain criteria are met. By default, if the link's destination url is the same url as the url of the current page, a default class of 'selected' is added to the link.
|
4
6
|
|
@@ -23,3 +25,29 @@ Same usage as `link_to`:
|
|
23
25
|
1. Add this to your Gemfile and then `bundle install`:
|
24
26
|
<pre><code>gem 'nav_lynx'</code></pre>
|
25
27
|
2. Use `nav_link_to` helper in your views.
|
28
|
+
|
29
|
+
## Config option
|
30
|
+
|
31
|
+
There is one config option `selected_class`. If you want a different class then "selected" for selected nav items globally you can use this option to change that. You can set this inside your configuration in `config/application.rb` of your Rails application like so:
|
32
|
+
|
33
|
+
module MyApplication
|
34
|
+
class Application < Rails::Application
|
35
|
+
# ...
|
36
|
+
|
37
|
+
config.nav_lynx.selected_class = 'current'
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
## Contributing to NavLYNX
|
42
|
+
|
43
|
+
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
|
44
|
+
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
|
45
|
+
* Fork the project.
|
46
|
+
* Start a feature/bugfix branch.
|
47
|
+
* Commit and push until you are happy with your contribution.
|
48
|
+
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
|
49
|
+
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
|
50
|
+
|
51
|
+
## Copyright
|
52
|
+
|
53
|
+
Copyright (c) 2013 Viget. See MIT_LICENSE for further details.
|
data/Rakefile
CHANGED
@@ -2,22 +2,26 @@ module NavLinkHelper
|
|
2
2
|
|
3
3
|
def nav_link_to(*args, &block)
|
4
4
|
title = block_given? ? capture(&block) : args.shift
|
5
|
-
|
5
|
+
url_options = args[0]
|
6
6
|
html_options = args[1] || {}
|
7
7
|
options = args[2] || {}
|
8
8
|
|
9
|
-
LinkGenerator.new(request, title,
|
9
|
+
LinkGenerator.new(request, title, url_options, controller,html_options, options).to_html
|
10
10
|
end
|
11
11
|
|
12
12
|
class LinkGenerator
|
13
13
|
include ActionView::Helpers::UrlHelper
|
14
|
+
include Rails.application.routes.url_helpers
|
14
15
|
|
15
|
-
|
16
|
+
attr_reader :controller
|
17
|
+
|
18
|
+
def initialize(request, title, url_options, controller, html_options = {}, options = {})
|
16
19
|
@request = request
|
17
20
|
@title = title
|
18
|
-
@
|
21
|
+
@url_options = url_options
|
19
22
|
@html_options = html_options
|
20
23
|
@options = options
|
24
|
+
@controller = controller
|
21
25
|
end
|
22
26
|
|
23
27
|
def to_html
|
@@ -32,28 +36,45 @@ module NavLinkHelper
|
|
32
36
|
|
33
37
|
private
|
34
38
|
|
39
|
+
def link
|
40
|
+
link_to(@title, @url_options, html_options)
|
41
|
+
end
|
42
|
+
|
43
|
+
def html_options
|
44
|
+
selected? ? @html_options.merge(:class => link_classes) : @html_options
|
45
|
+
end
|
46
|
+
|
47
|
+
def selected?
|
48
|
+
paths_match? || segments_match?
|
49
|
+
end
|
50
|
+
|
51
|
+
def paths_match?
|
52
|
+
current_path == link_path
|
53
|
+
end
|
54
|
+
|
35
55
|
def current_path
|
36
56
|
comparable_path_for(@request.fullpath)
|
37
57
|
end
|
38
58
|
|
39
59
|
def link_path
|
40
|
-
|
60
|
+
path = url_for(@url_options)
|
61
|
+
comparable_path_for(path)
|
41
62
|
end
|
42
63
|
|
43
|
-
def
|
44
|
-
if @options[:
|
45
|
-
|
46
|
-
|
47
|
-
|
64
|
+
def comparable_path_for(path)
|
65
|
+
if @options[:ignore_params]
|
66
|
+
path.gsub(/\?.*/, '')
|
67
|
+
else
|
68
|
+
path
|
48
69
|
end
|
49
70
|
end
|
50
71
|
|
51
|
-
def
|
52
|
-
|
72
|
+
def segments_match?
|
73
|
+
path_segment && path_segment == current_segment
|
53
74
|
end
|
54
75
|
|
55
|
-
def
|
56
|
-
|
76
|
+
def path_segment
|
77
|
+
segment_for(path_controller, current_path)
|
57
78
|
end
|
58
79
|
|
59
80
|
def segment_for(controller, path)
|
@@ -64,28 +85,34 @@ module NavLinkHelper
|
|
64
85
|
end
|
65
86
|
end
|
66
87
|
|
67
|
-
def
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
88
|
+
def path_controller
|
89
|
+
if @url_options.is_a?(Hash) && @url_options[:controller]
|
90
|
+
@url_options[:controller]
|
91
|
+
else
|
92
|
+
controller_for(url_for(@url_options))
|
93
|
+
end
|
73
94
|
end
|
74
95
|
|
75
|
-
def
|
76
|
-
|
96
|
+
def segment_position
|
97
|
+
if @options[:controller_segment]
|
98
|
+
@options[:controller_segment] - 1
|
99
|
+
elsif @options[:url_segment]
|
100
|
+
@options[:url_segment]
|
101
|
+
end
|
77
102
|
end
|
78
103
|
|
79
|
-
def
|
80
|
-
|
104
|
+
def controller_for(path)
|
105
|
+
Rails.application.routes.recognize_path(path)[:controller]
|
106
|
+
rescue ActionController::RoutingError
|
107
|
+
nil
|
81
108
|
end
|
82
109
|
|
83
|
-
def
|
84
|
-
|
110
|
+
def current_segment
|
111
|
+
segment_for(current_controller, link_path)
|
85
112
|
end
|
86
113
|
|
87
|
-
def
|
88
|
-
@
|
114
|
+
def current_controller
|
115
|
+
controller_for(@request.path)
|
89
116
|
end
|
90
117
|
|
91
118
|
def link_classes
|
@@ -96,12 +123,8 @@ module NavLinkHelper
|
|
96
123
|
end
|
97
124
|
end
|
98
125
|
|
99
|
-
def
|
100
|
-
|
101
|
-
end
|
102
|
-
|
103
|
-
def link
|
104
|
-
link_to(@title, @path, html_options)
|
126
|
+
def selected_class
|
127
|
+
@options[:selected_class] || NavLYNX.selected_class
|
105
128
|
end
|
106
129
|
|
107
130
|
def wrapper_classes
|
@@ -111,18 +134,6 @@ module NavLinkHelper
|
|
111
134
|
@options[:wrapper_class]
|
112
135
|
end
|
113
136
|
end
|
114
|
-
|
115
|
-
def controller_for(path)
|
116
|
-
Rails.application.routes.recognize_path(path)[:controller]
|
117
|
-
end
|
118
|
-
|
119
|
-
def comparable_path_for(path)
|
120
|
-
if @options[:ignore_params]
|
121
|
-
path.gsub(/\?.*/, '')
|
122
|
-
else
|
123
|
-
path
|
124
|
-
end
|
125
|
-
end
|
126
137
|
end
|
127
138
|
|
128
139
|
end
|
data/lib/nav_lynx/engine.rb
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
module NavLYNX
|
2
2
|
class Engine < ::Rails::Engine
|
3
|
+
config.nav_lynx = ActiveSupport::OrderedOptions.new
|
4
|
+
|
3
5
|
config.generators do |g|
|
4
6
|
g.test_framework :rspec, :fixture => false
|
5
7
|
end
|
8
|
+
|
9
|
+
initializer "redirector.apply_options" do |app|
|
10
|
+
NavLYNX.selected_class = app.config.nav_lynx.selected_class || 'selected'
|
11
|
+
end
|
6
12
|
end
|
7
13
|
end
|
data/lib/nav_lynx/version.rb
CHANGED
data/lib/nav_lynx.rb
CHANGED
@@ -1,11 +1,7 @@
|
|
1
1
|
require File.expand_path('../boot', __FILE__)
|
2
2
|
|
3
3
|
# Pick the frameworks you want:
|
4
|
-
require
|
5
|
-
require "action_controller/railtie"
|
6
|
-
require "action_mailer/railtie"
|
7
|
-
require "active_resource/railtie"
|
8
|
-
require "sprockets/railtie"
|
4
|
+
require 'rails/all'
|
9
5
|
# require "rails/test_unit/railtie"
|
10
6
|
|
11
7
|
Bundler.require(*Rails.groups)
|
@@ -49,12 +45,6 @@ module Dummy
|
|
49
45
|
# like if you have constraints or database-specific column types
|
50
46
|
# config.active_record.schema_format = :sql
|
51
47
|
|
52
|
-
# Enforce whitelist mode for mass assignment.
|
53
|
-
# This will create an empty whitelist of attributes available for mass-assignment for all models
|
54
|
-
# in your app. As such, your models will need to explicitly whitelist or blacklist accessible
|
55
|
-
# parameters by using an attr_accessible or attr_protected declaration.
|
56
|
-
config.active_record.whitelist_attributes = true
|
57
|
-
|
58
48
|
# Enable the asset pipeline
|
59
49
|
config.assets.enabled = true
|
60
50
|
|
data/spec/dummy/config/boot.rb
CHANGED
@@ -1,10 +1,6 @@
|
|
1
1
|
require 'rubygems'
|
2
|
-
|
2
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../../Gemfile', __FILE__)
|
3
3
|
|
4
|
-
if File.exist?(
|
5
|
-
ENV['BUNDLE_GEMFILE'] = gemfile
|
6
|
-
require 'bundler'
|
7
|
-
Bundler.setup
|
8
|
-
end
|
4
|
+
require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
|
9
5
|
|
10
|
-
$:.unshift File.expand_path('../../../../lib', __FILE__)
|
6
|
+
$:.unshift File.expand_path('../../../../lib', __FILE__)
|
@@ -22,13 +22,6 @@ Dummy::Application.configure do
|
|
22
22
|
# Only use best-standards-support built into browsers
|
23
23
|
config.action_dispatch.best_standards_support = :builtin
|
24
24
|
|
25
|
-
# Raise exception on mass assignment protection for Active Record models
|
26
|
-
config.active_record.mass_assignment_sanitizer = :strict
|
27
|
-
|
28
|
-
# Log the query plan for queries taking more than this (works
|
29
|
-
# with SQLite, MySQL, and PostgreSQL)
|
30
|
-
config.active_record.auto_explain_threshold_in_seconds = 0.5
|
31
|
-
|
32
25
|
# Do not compress assets
|
33
26
|
config.assets.compress = false
|
34
27
|
|
@@ -29,9 +29,8 @@ Dummy::Application.configure do
|
|
29
29
|
# ActionMailer::Base.deliveries array.
|
30
30
|
config.action_mailer.delivery_method = :test
|
31
31
|
|
32
|
-
# Raise exception on mass assignment protection for Active Record models
|
33
|
-
config.active_record.mass_assignment_sanitizer = :strict
|
34
|
-
|
35
32
|
# Print deprecation notices to the stderr
|
36
33
|
config.active_support.deprecation = :stderr
|
34
|
+
|
35
|
+
config.eager_load = false
|
37
36
|
end
|
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
@@ -40,3 +40,142 @@ Connecting to database specified by database.yml
|
|
40
40
|
Connecting to database specified by database.yml
|
41
41
|
[1m[36m (0.2ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
42
42
|
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
43
|
+
Connecting to database specified by database.yml
|
44
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
45
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
46
|
+
Connecting to database specified by database.yml
|
47
|
+
[1m[36m (0.3ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
48
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
49
|
+
Connecting to database specified by database.yml
|
50
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
51
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
52
|
+
Connecting to database specified by database.yml
|
53
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
54
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
55
|
+
Connecting to database specified by database.yml
|
56
|
+
[1m[36m (0.2ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
57
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
58
|
+
[1m[36m (1.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
59
|
+
[1m[35m (1.4ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
60
|
+
[1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
61
|
+
[1m[35m (1.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('0')
|
62
|
+
Connecting to database specified by database.yml
|
63
|
+
[1m[36m (0.2ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
64
|
+
[1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
|
65
|
+
[1m[36m (104.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
66
|
+
[1m[35m (326.4ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
67
|
+
[1m[36m (0.3ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
68
|
+
[1m[35m (205.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('0')
|
69
|
+
Connecting to database specified by database.yml
|
70
|
+
[1m[36m (0.2ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
71
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
72
|
+
[1m[36m (17.4ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
73
|
+
[1m[35m (9.5ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
74
|
+
[1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
75
|
+
[1m[35m (14.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('0')
|
76
|
+
Connecting to database specified by database.yml
|
77
|
+
[1m[36m (0.2ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
78
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
79
|
+
Connecting to database specified by database.yml
|
80
|
+
[1m[36m (0.2ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
81
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
82
|
+
Connecting to database specified by database.yml
|
83
|
+
[1m[36m (0.2ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
84
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
85
|
+
Connecting to database specified by database.yml
|
86
|
+
[1m[36m (0.2ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
87
|
+
[1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
|
88
|
+
[1m[36m (1.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
89
|
+
[1m[35m (1.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
90
|
+
[1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
91
|
+
[1m[35m (1.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('0')
|
92
|
+
Connecting to database specified by database.yml
|
93
|
+
[1m[36m (0.3ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
94
|
+
[1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
|
95
|
+
Connecting to database specified by database.yml
|
96
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
97
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
98
|
+
[1m[36m (2.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
99
|
+
[1m[35m (1.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
100
|
+
[1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
101
|
+
[1m[35m (1.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('0')
|
102
|
+
Connecting to database specified by database.yml
|
103
|
+
[1m[36m (0.2ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
104
|
+
[1m[35m (0.3ms)[0m SELECT version FROM "schema_migrations"
|
105
|
+
[1m[36m (1.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
106
|
+
[1m[35m (1.3ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
107
|
+
[1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
108
|
+
[1m[35m (1.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('0')
|
109
|
+
Connecting to database specified by database.yml
|
110
|
+
[1m[36m (0.2ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
111
|
+
[1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
|
112
|
+
Connecting to database specified by database.yml
|
113
|
+
[1m[36m (0.2ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
114
|
+
[1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
|
115
|
+
Connecting to database specified by database.yml
|
116
|
+
[1m[36m (0.2ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
117
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
118
|
+
[1m[36m (11.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
119
|
+
[1m[35m (1.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
120
|
+
[1m[36m (0.3ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
121
|
+
[1m[35m (1.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('0')
|
122
|
+
Connecting to database specified by database.yml
|
123
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
124
|
+
[1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
|
125
|
+
[1m[36m (7.5ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
126
|
+
[1m[35m (1.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
127
|
+
[1m[36m (0.3ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
128
|
+
[1m[35m (1.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('0')
|
129
|
+
Connecting to database specified by database.yml
|
130
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
131
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
132
|
+
[1m[36m (2.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
133
|
+
[1m[35m (1.5ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
134
|
+
[1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
135
|
+
[1m[35m (1.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('0')
|
136
|
+
Connecting to database specified by database.yml
|
137
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
138
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
139
|
+
Connecting to database specified by database.yml
|
140
|
+
[1m[36m (0.2ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
141
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
142
|
+
Connecting to database specified by database.yml
|
143
|
+
[1m[36m (0.3ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
144
|
+
[1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
|
145
|
+
Connecting to database specified by database.yml
|
146
|
+
[1m[36m (0.2ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
147
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
148
|
+
Connecting to database specified by database.yml
|
149
|
+
[1m[36m (0.2ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
150
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
151
|
+
Connecting to database specified by database.yml
|
152
|
+
[1m[36m (0.2ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
153
|
+
[1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
|
154
|
+
[1m[36m (1.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
155
|
+
[1m[35m (1.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
156
|
+
[1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
157
|
+
[1m[35m (1.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('0')
|
158
|
+
Connecting to database specified by database.yml
|
159
|
+
[1m[36m (0.2ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
160
|
+
[1m[35m (17.1ms)[0m SELECT version FROM "schema_migrations"
|
161
|
+
[1m[36m (64.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
162
|
+
[1m[35m (101.5ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
163
|
+
[1m[36m (0.3ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
164
|
+
[1m[35m (138.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('0')
|
165
|
+
Connecting to database specified by database.yml
|
166
|
+
[1m[36m (0.2ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
167
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
168
|
+
Connecting to database specified by database.yml
|
169
|
+
[1m[36m (0.2ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
170
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
171
|
+
[1m[36m (1.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
172
|
+
[1m[35m (1.6ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
173
|
+
[1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
174
|
+
[1m[35m (1.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('0')
|
175
|
+
Connecting to database specified by database.yml
|
176
|
+
[1m[36m (0.2ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
177
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
178
|
+
[1m[36m (1.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
179
|
+
[1m[35m (1.5ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
180
|
+
[1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
181
|
+
[1m[35m (1.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('0')
|