resource_controller 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/resource_controller/helpers/current_objects.rb +63 -59
- data/lib/resource_controller/helpers/internal.rb +69 -65
- data/lib/resource_controller/helpers/nested.rb +54 -50
- data/lib/resource_controller/helpers/singleton_customizations.rb +50 -46
- data/lib/resource_controller/helpers/urls.rb +73 -69
- data/lib/resource_controller/helpers.rb +6 -0
- data/lib/resource_controller/version.rb +1 -1
- data/lib/resource_controller.rb +13 -0
- data/test/config/environment.rb +3 -18
- data/test/log/development.log +264 -0
- data/test/log/test.log +29568 -0
- metadata +4 -2
@@ -37,92 +37,96 @@
|
|
37
37
|
#
|
38
38
|
# You get the idea. Everything is automagical! All parameters are inferred.
|
39
39
|
#
|
40
|
-
module ResourceController
|
41
|
-
|
42
|
-
|
43
|
-
|
40
|
+
module ResourceController
|
41
|
+
module Helpers
|
42
|
+
module Urls
|
43
|
+
protected
|
44
|
+
['', 'edit_'].each do |type|
|
45
|
+
symbol = type.blank? ? nil : type.gsub(/_/, '').to_sym
|
44
46
|
|
45
|
-
|
46
|
-
|
47
|
-
|
47
|
+
define_method("#{type}object_url") do |*alternate_object|
|
48
|
+
smart_url *object_url_options(symbol, alternate_object.first)
|
49
|
+
end
|
48
50
|
|
49
|
-
|
50
|
-
|
51
|
-
|
51
|
+
define_method("#{type}object_path") do |*alternate_object|
|
52
|
+
smart_path *object_url_options(symbol, alternate_object.first)
|
53
|
+
end
|
52
54
|
|
53
|
-
|
54
|
-
|
55
|
-
|
55
|
+
define_method("hash_for_#{type}object_url") do |*alternate_object|
|
56
|
+
hash_for_smart_url *object_url_options(symbol, alternate_object.first)
|
57
|
+
end
|
56
58
|
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
59
|
+
define_method("hash_for_#{type}object_path") do |*alternate_object|
|
60
|
+
hash_for_smart_path *object_url_options(symbol, alternate_object.first)
|
61
|
+
end
|
62
|
+
end
|
61
63
|
|
62
|
-
|
63
|
-
|
64
|
-
|
64
|
+
def new_object_url
|
65
|
+
smart_url *new_object_url_options
|
66
|
+
end
|
65
67
|
|
66
|
-
|
67
|
-
|
68
|
-
|
68
|
+
def new_object_path
|
69
|
+
smart_path *new_object_url_options
|
70
|
+
end
|
69
71
|
|
70
|
-
|
71
|
-
|
72
|
-
|
72
|
+
def hash_for_new_object_url
|
73
|
+
hash_for_smart_url *new_object_url_options
|
74
|
+
end
|
73
75
|
|
74
|
-
|
75
|
-
|
76
|
-
|
76
|
+
def hash_for_new_object_path
|
77
|
+
hash_for_smart_path *new_object_url_options
|
78
|
+
end
|
77
79
|
|
78
|
-
|
79
|
-
|
80
|
-
|
80
|
+
def collection_url
|
81
|
+
smart_url *collection_url_options
|
82
|
+
end
|
81
83
|
|
82
|
-
|
83
|
-
|
84
|
-
|
84
|
+
def collection_path
|
85
|
+
smart_path *collection_url_options
|
86
|
+
end
|
85
87
|
|
86
|
-
|
87
|
-
|
88
|
-
|
88
|
+
def hash_for_collection_url
|
89
|
+
hash_for_smart_url *collection_url_options
|
90
|
+
end
|
89
91
|
|
90
|
-
|
91
|
-
|
92
|
-
|
92
|
+
def hash_for_collection_path
|
93
|
+
hash_for_smart_path *collection_url_options
|
94
|
+
end
|
93
95
|
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
96
|
+
# Used internally to provide the options to smart_url from Urligence.
|
97
|
+
#
|
98
|
+
def collection_url_options
|
99
|
+
namespaces + [parent_url_options, route_name.to_s.pluralize.to_sym]
|
100
|
+
end
|
99
101
|
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
102
|
+
# Used internally to provide the options to smart_url from Urligence.
|
103
|
+
#
|
104
|
+
def object_url_options(action_prefix = nil, alternate_object = nil)
|
105
|
+
[action_prefix] + namespaces + [parent_url_options, [route_name.to_sym, alternate_object || object]]
|
106
|
+
end
|
105
107
|
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
108
|
+
# Used internally to provide the options to smart_url from Urligence.
|
109
|
+
#
|
110
|
+
def new_object_url_options
|
111
|
+
[:new] + namespaces + [parent_url_options, route_name.to_sym]
|
112
|
+
end
|
111
113
|
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
114
|
+
def parent_url_options
|
115
|
+
if parent?
|
116
|
+
parent_singleton? ? parent_type.to_sym : [parent_type.to_sym, parent_object]
|
117
|
+
else
|
118
|
+
nil
|
119
|
+
end
|
120
|
+
end
|
119
121
|
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
122
|
+
# Returns all of the current namespaces of the current controller, symbolized, in array form.
|
123
|
+
#
|
124
|
+
def namespaces
|
125
|
+
names = self.class.name.split("::")
|
126
|
+
names.pop
|
125
127
|
|
126
|
-
|
128
|
+
names.map(&:underscore).map(&:to_sym)
|
129
|
+
end
|
127
130
|
end
|
131
|
+
end
|
128
132
|
end
|
@@ -1,3 +1,9 @@
|
|
1
|
+
require 'resource_controller/helpers/current_objects'
|
2
|
+
require 'resource_controller/helpers/internal'
|
3
|
+
require 'resource_controller/helpers/nested'
|
4
|
+
require 'resource_controller/helpers/singleton_customizations'
|
5
|
+
require 'resource_controller/helpers/urls'
|
6
|
+
|
1
7
|
module ResourceController
|
2
8
|
# == ResourceController::Helpers
|
3
9
|
#
|
data/lib/resource_controller.rb
CHANGED
@@ -1,3 +1,16 @@
|
|
1
|
+
$LOAD_PATH << File.dirname(__FILE__) unless $LOAD_PATH.include?(File.dirname(__FILE__))
|
2
|
+
require 'application'
|
3
|
+
require 'resource_controller/accessors'
|
4
|
+
require 'resource_controller/action_options'
|
5
|
+
require 'resource_controller/actions'
|
6
|
+
require 'resource_controller/base'
|
7
|
+
require 'resource_controller/class_methods'
|
8
|
+
require 'resource_controller/controller'
|
9
|
+
require 'resource_controller/failable_action_options'
|
10
|
+
require 'resource_controller/helpers'
|
11
|
+
require 'resource_controller/response_collector'
|
12
|
+
require 'resource_controller/singleton'
|
13
|
+
require 'resource_controller/version'
|
1
14
|
require 'urligence'
|
2
15
|
|
3
16
|
module ResourceController
|
data/test/config/environment.rb
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
# ENV['RAILS_ENV'] ||= 'production'
|
6
6
|
|
7
7
|
# Specifies gem version of Rails to use when vendor/rails is not present
|
8
|
-
RAILS_GEM_VERSION = '2.
|
8
|
+
RAILS_GEM_VERSION = '2.1.1' unless defined? RAILS_GEM_VERSION
|
9
9
|
|
10
10
|
# Bootstrap the Rails environment, frameworks, and default configuration
|
11
11
|
require File.join(File.dirname(__FILE__), 'boot')
|
@@ -44,21 +44,6 @@ Rails::Initializer.run do |config|
|
|
44
44
|
# See Rails::Configuration for more options
|
45
45
|
|
46
46
|
config.action_controller.session = { :session_key => "_myapp_session", :secret => "6c1372e61789239a727cdbc8252eb6da" }
|
47
|
+
|
48
|
+
config.gem 'resource_controller'
|
47
49
|
end
|
48
|
-
|
49
|
-
require "#{RAILS_ROOT}/../init"
|
50
|
-
|
51
|
-
# Add new inflection rules using the following format
|
52
|
-
# (all these examples are active by default):
|
53
|
-
# Inflector.inflections do |inflect|
|
54
|
-
# inflect.plural /^(ox)$/i, '\1en'
|
55
|
-
# inflect.singular /^(ox)en/i, '\1'
|
56
|
-
# inflect.irregular 'person', 'people'
|
57
|
-
# inflect.uncountable %w( fish sheep )
|
58
|
-
# end
|
59
|
-
|
60
|
-
# Add new mime types for use in respond_to blocks:
|
61
|
-
# Mime::Type.register "text/richtext", :rtf
|
62
|
-
# Mime::Type.register "application/x-mobile", :mobile
|
63
|
-
|
64
|
-
# Include your application configuration below
|
data/test/log/development.log
CHANGED
@@ -3084,3 +3084,267 @@ Migrating to CreatePosts (1)
|
|
3084
3084
|
[4;35;1mSQL (0.000486)[0m [0mINSERT INTO `schema_info` (version) VALUES(0)[0m
|
3085
3085
|
[4;36;1mSQL (0.001158)[0m [0;1mSHOW FIELDS FROM `schema_info`[0m
|
3086
3086
|
[4;35;1mSQL (0.000193)[0m [0mUPDATE schema_info SET version = 12[0m
|
3087
|
+
DEPRECATION WARNING: config.action_view.cache_template_extensions option has been deprecated and has no affect. Please remove it from your config files. See http://www.rubyonrails.org/deprecation for details. (called from send at /Library/Ruby/Gems/1.8/gems/rails-2.1.1/lib/initializer.rb:464)
|
3088
|
+
[4;36;1mSQL (0.000187)[0m [0;1mSET SQL_AUTO_IS_NULL=0[0m
|
3089
|
+
[4;35;1mSQL (0.024297)[0m [0mSHOW TABLES[0m
|
3090
|
+
[4;36;1mSQL (0.033981)[0m [0;1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
|
3091
|
+
[4;35;1mSQL (0.015440)[0m [0mCREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)[0m
|
3092
|
+
[4;36;1mSQL (0.000423)[0m [0;1mSHOW TABLES[0m
|
3093
|
+
[4;35;1mSQL (0.030691)[0m [0mSELECT version FROM `schema_info`[0m
|
3094
|
+
[4;36;1mSQL (0.000346)[0m [0;1mSELECT version FROM `schema_migrations`[0m
|
3095
|
+
[4;35;1mSQL (0.000422)[0m [0mINSERT INTO `schema_migrations` (version) VALUES ('12')[0m
|
3096
|
+
[4;36;1mSQL (0.000436)[0m [0;1mINSERT INTO `schema_migrations` (version) VALUES ('1')[0m
|
3097
|
+
[4;35;1mSQL (0.000344)[0m [0mINSERT INTO `schema_migrations` (version) VALUES ('2')[0m
|
3098
|
+
[4;36;1mSQL (0.000468)[0m [0;1mINSERT INTO `schema_migrations` (version) VALUES ('3')[0m
|
3099
|
+
[4;35;1mSQL (0.000326)[0m [0mINSERT INTO `schema_migrations` (version) VALUES ('4')[0m
|
3100
|
+
[4;36;1mSQL (0.000445)[0m [0;1mINSERT INTO `schema_migrations` (version) VALUES ('5')[0m
|
3101
|
+
[4;35;1mSQL (0.000594)[0m [0mINSERT INTO `schema_migrations` (version) VALUES ('6')[0m
|
3102
|
+
[4;36;1mSQL (0.000443)[0m [0;1mINSERT INTO `schema_migrations` (version) VALUES ('7')[0m
|
3103
|
+
[4;35;1mSQL (0.000438)[0m [0mINSERT INTO `schema_migrations` (version) VALUES ('8')[0m
|
3104
|
+
[4;36;1mSQL (0.000364)[0m [0;1mINSERT INTO `schema_migrations` (version) VALUES ('9')[0m
|
3105
|
+
[4;35;1mSQL (0.000442)[0m [0mINSERT INTO `schema_migrations` (version) VALUES ('10')[0m
|
3106
|
+
[4;36;1mSQL (0.000373)[0m [0;1mINSERT INTO `schema_migrations` (version) VALUES ('11')[0m
|
3107
|
+
[4;35;1mSQL (0.017361)[0m [0mDROP TABLE `schema_info`[0m
|
3108
|
+
[4;36;1mSQL (0.000266)[0m [0;1mSELECT version FROM schema_migrations[0m
|
3109
|
+
[4;35;1mSQL (0.000104)[0m [0mSET SQL_AUTO_IS_NULL=0[0m
|
3110
|
+
[4;36;1mSQL (0.034901)[0m [0;1mDROP DATABASE IF EXISTS `resource_controller_test`[0m
|
3111
|
+
[4;35;1mSQL (0.071702)[0m [0mCREATE DATABASE `resource_controller_test` DEFAULT CHARACTER SET `utf8`[0m
|
3112
|
+
[4;36;1mSQL (0.000141)[0m [0;1mSET SQL_AUTO_IS_NULL=0[0m
|
3113
|
+
[4;35;1mSQL (0.000332)[0m [0mSHOW TABLES[0m
|
3114
|
+
[4;36;1mSQL (0.001666)[0m [0;1mCREATE TABLE `accounts` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255)) ENGINE=InnoDB[0m
|
3115
|
+
[4;35;1mSQL (0.000236)[0m [0mSHOW TABLES[0m
|
3116
|
+
[4;36;1mSQL (0.021300)[0m [0;1mCREATE TABLE `comments` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `post_id` int(11), `author` varchar(255), `body` text) ENGINE=InnoDB[0m
|
3117
|
+
[4;35;1mSQL (0.000270)[0m [0mSHOW TABLES[0m
|
3118
|
+
[4;36;1mSQL (0.001323)[0m [0;1mCREATE TABLE `images` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `user_id` int(11), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB[0m
|
3119
|
+
[4;35;1mSQL (0.000249)[0m [0mSHOW TABLES[0m
|
3120
|
+
[4;36;1mSQL (0.004917)[0m [0;1mCREATE TABLE `options` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `product_id` int(11), `account_id` int(11), `title` varchar(255)) ENGINE=InnoDB[0m
|
3121
|
+
[4;35;1mSQL (0.000240)[0m [0mSHOW TABLES[0m
|
3122
|
+
[4;36;1mSQL (0.007711)[0m [0;1mCREATE TABLE `photos` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `account_id` int(11)) ENGINE=InnoDB[0m
|
3123
|
+
[4;35;1mSQL (0.000269)[0m [0mSHOW TABLES[0m
|
3124
|
+
[4;36;1mSQL (0.001499)[0m [0;1mCREATE TABLE `photos_tags` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `photo_id` int(11), `tag_id` int(11)) ENGINE=InnoDB[0m
|
3125
|
+
[4;35;1mSQL (0.000244)[0m [0mSHOW TABLES[0m
|
3126
|
+
[4;36;1mSQL (0.004818)[0m [0;1mCREATE TABLE `posts` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255) DEFAULT '', `body` text) ENGINE=InnoDB[0m
|
3127
|
+
[4;35;1mSQL (0.000291)[0m [0mSHOW TABLES[0m
|
3128
|
+
[4;36;1mSQL (0.001560)[0m [0;1mCREATE TABLE `products` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255)) ENGINE=InnoDB[0m
|
3129
|
+
[4;35;1mSQL (0.000405)[0m [0mSHOW TABLES[0m
|
3130
|
+
[4;36;1mSQL (0.004913)[0m [0;1mCREATE TABLE `projects` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255)) ENGINE=InnoDB[0m
|
3131
|
+
[4;35;1mSQL (0.000354)[0m [0mSHOW TABLES[0m
|
3132
|
+
[4;36;1mSQL (0.001299)[0m [0;1mCREATE TABLE `somethings` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255)) ENGINE=InnoDB[0m
|
3133
|
+
[4;35;1mSQL (0.000349)[0m [0mSHOW TABLES[0m
|
3134
|
+
[4;36;1mSQL (0.006230)[0m [0;1mCREATE TABLE `tags` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255)) ENGINE=InnoDB[0m
|
3135
|
+
[4;35;1mSQL (0.000403)[0m [0mSHOW TABLES[0m
|
3136
|
+
[4;36;1mSQL (0.001751)[0m [0;1mCREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB[0m
|
3137
|
+
[4;35;1mSQL (0.000342)[0m [0mSHOW TABLES[0m
|
3138
|
+
[4;36;1mSQL (0.003781)[0m [0;1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
|
3139
|
+
[4;35;1mSQL (0.003342)[0m [0mCREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)[0m
|
3140
|
+
[4;36;1mSQL (0.000373)[0m [0;1mSHOW TABLES[0m
|
3141
|
+
[4;35;1mSQL (0.000407)[0m [0mSELECT version FROM `schema_migrations`[0m
|
3142
|
+
[4;36;1mSQL (0.000361)[0m [0;1mINSERT INTO `schema_migrations` (version) VALUES ('12')[0m
|
3143
|
+
[4;35;1mSQL (0.000995)[0m [0mINSERT INTO `schema_migrations` (version) VALUES ('1')[0m
|
3144
|
+
[4;36;1mSQL (0.000318)[0m [0;1mINSERT INTO `schema_migrations` (version) VALUES ('2')[0m
|
3145
|
+
[4;35;1mSQL (0.009527)[0m [0mINSERT INTO `schema_migrations` (version) VALUES ('3')[0m
|
3146
|
+
[4;36;1mSQL (0.000291)[0m [0;1mINSERT INTO `schema_migrations` (version) VALUES ('4')[0m
|
3147
|
+
[4;35;1mSQL (0.000270)[0m [0mINSERT INTO `schema_migrations` (version) VALUES ('5')[0m
|
3148
|
+
[4;36;1mSQL (0.000274)[0m [0;1mINSERT INTO `schema_migrations` (version) VALUES ('6')[0m
|
3149
|
+
[4;35;1mSQL (0.000305)[0m [0mINSERT INTO `schema_migrations` (version) VALUES ('7')[0m
|
3150
|
+
[4;36;1mSQL (0.000283)[0m [0;1mINSERT INTO `schema_migrations` (version) VALUES ('8')[0m
|
3151
|
+
[4;35;1mSQL (0.000310)[0m [0mINSERT INTO `schema_migrations` (version) VALUES ('9')[0m
|
3152
|
+
[4;36;1mSQL (0.000271)[0m [0;1mINSERT INTO `schema_migrations` (version) VALUES ('10')[0m
|
3153
|
+
[4;35;1mSQL (0.000269)[0m [0mINSERT INTO `schema_migrations` (version) VALUES ('11')[0m
|
3154
|
+
DEPRECATION WARNING: config.action_view.cache_template_extensions option has been deprecated and has no affect. Please remove it from your config files. See http://www.rubyonrails.org/deprecation for details. (called from send at /Library/Ruby/Gems/1.8/gems/rails-2.1.1/lib/initializer.rb:464)
|
3155
|
+
[4;36;1mSQL (0.000189)[0m [0;1mSET SQL_AUTO_IS_NULL=0[0m
|
3156
|
+
[4;35;1mSQL (0.000405)[0m [0mSHOW TABLES[0m
|
3157
|
+
[4;36;1mSQL (0.000193)[0m [0;1mSELECT version FROM schema_migrations[0m
|
3158
|
+
[4;35;1mSQL (0.000101)[0m [0mSET SQL_AUTO_IS_NULL=0[0m
|
3159
|
+
[4;36;1mSQL (0.048931)[0m [0;1mDROP DATABASE IF EXISTS `resource_controller_test`[0m
|
3160
|
+
[4;35;1mSQL (0.000455)[0m [0mCREATE DATABASE `resource_controller_test` DEFAULT CHARACTER SET `utf8`[0m
|
3161
|
+
[4;36;1mSQL (0.000102)[0m [0;1mSET SQL_AUTO_IS_NULL=0[0m
|
3162
|
+
[4;35;1mSQL (0.000263)[0m [0mSHOW TABLES[0m
|
3163
|
+
[4;36;1mSQL (0.001946)[0m [0;1mCREATE TABLE `accounts` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255)) ENGINE=InnoDB[0m
|
3164
|
+
[4;35;1mSQL (0.000253)[0m [0mSHOW TABLES[0m
|
3165
|
+
[4;36;1mSQL (0.010296)[0m [0;1mCREATE TABLE `comments` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `post_id` int(11), `author` varchar(255), `body` text) ENGINE=InnoDB[0m
|
3166
|
+
[4;35;1mSQL (0.000274)[0m [0mSHOW TABLES[0m
|
3167
|
+
[4;36;1mSQL (0.007316)[0m [0;1mCREATE TABLE `images` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `user_id` int(11), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB[0m
|
3168
|
+
[4;35;1mSQL (0.000250)[0m [0mSHOW TABLES[0m
|
3169
|
+
[4;36;1mSQL (0.001628)[0m [0;1mCREATE TABLE `options` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `product_id` int(11), `account_id` int(11), `title` varchar(255)) ENGINE=InnoDB[0m
|
3170
|
+
[4;35;1mSQL (0.000251)[0m [0mSHOW TABLES[0m
|
3171
|
+
[4;36;1mSQL (0.004782)[0m [0;1mCREATE TABLE `photos` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `account_id` int(11)) ENGINE=InnoDB[0m
|
3172
|
+
[4;35;1mSQL (0.000234)[0m [0mSHOW TABLES[0m
|
3173
|
+
[4;36;1mSQL (0.001507)[0m [0;1mCREATE TABLE `photos_tags` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `photo_id` int(11), `tag_id` int(11)) ENGINE=InnoDB[0m
|
3174
|
+
[4;35;1mSQL (0.000240)[0m [0mSHOW TABLES[0m
|
3175
|
+
[4;36;1mSQL (0.005050)[0m [0;1mCREATE TABLE `posts` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255) DEFAULT '', `body` text) ENGINE=InnoDB[0m
|
3176
|
+
[4;35;1mSQL (0.000351)[0m [0mSHOW TABLES[0m
|
3177
|
+
[4;36;1mSQL (0.001632)[0m [0;1mCREATE TABLE `products` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255)) ENGINE=InnoDB[0m
|
3178
|
+
[4;35;1mSQL (0.000289)[0m [0mSHOW TABLES[0m
|
3179
|
+
[4;36;1mSQL (0.004662)[0m [0;1mCREATE TABLE `projects` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255)) ENGINE=InnoDB[0m
|
3180
|
+
[4;35;1mSQL (0.000346)[0m [0mSHOW TABLES[0m
|
3181
|
+
[4;36;1mSQL (0.001239)[0m [0;1mCREATE TABLE `somethings` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255)) ENGINE=InnoDB[0m
|
3182
|
+
[4;35;1mSQL (0.000305)[0m [0mSHOW TABLES[0m
|
3183
|
+
[4;36;1mSQL (0.005219)[0m [0;1mCREATE TABLE `tags` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255)) ENGINE=InnoDB[0m
|
3184
|
+
[4;35;1mSQL (0.000347)[0m [0mSHOW TABLES[0m
|
3185
|
+
[4;36;1mSQL (0.001639)[0m [0;1mCREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB[0m
|
3186
|
+
[4;35;1mSQL (0.000371)[0m [0mSHOW TABLES[0m
|
3187
|
+
[4;36;1mSQL (0.004785)[0m [0;1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
|
3188
|
+
[4;35;1mSQL (0.010121)[0m [0mCREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)[0m
|
3189
|
+
[4;36;1mSQL (0.000560)[0m [0;1mSHOW TABLES[0m
|
3190
|
+
[4;35;1mSQL (0.000367)[0m [0mSELECT version FROM `schema_migrations`[0m
|
3191
|
+
[4;36;1mSQL (0.000430)[0m [0;1mINSERT INTO `schema_migrations` (version) VALUES ('12')[0m
|
3192
|
+
[4;35;1mSQL (0.000457)[0m [0mINSERT INTO `schema_migrations` (version) VALUES ('1')[0m
|
3193
|
+
[4;36;1mSQL (0.000336)[0m [0;1mINSERT INTO `schema_migrations` (version) VALUES ('2')[0m
|
3194
|
+
[4;35;1mSQL (0.000441)[0m [0mINSERT INTO `schema_migrations` (version) VALUES ('3')[0m
|
3195
|
+
[4;36;1mSQL (0.000325)[0m [0;1mINSERT INTO `schema_migrations` (version) VALUES ('4')[0m
|
3196
|
+
[4;35;1mSQL (0.000430)[0m [0mINSERT INTO `schema_migrations` (version) VALUES ('5')[0m
|
3197
|
+
[4;36;1mSQL (0.000356)[0m [0;1mINSERT INTO `schema_migrations` (version) VALUES ('6')[0m
|
3198
|
+
[4;35;1mSQL (0.000430)[0m [0mINSERT INTO `schema_migrations` (version) VALUES ('7')[0m
|
3199
|
+
[4;36;1mSQL (0.000322)[0m [0;1mINSERT INTO `schema_migrations` (version) VALUES ('8')[0m
|
3200
|
+
[4;35;1mSQL (0.000450)[0m [0mINSERT INTO `schema_migrations` (version) VALUES ('9')[0m
|
3201
|
+
[4;36;1mSQL (0.000343)[0m [0;1mINSERT INTO `schema_migrations` (version) VALUES ('10')[0m
|
3202
|
+
[4;35;1mSQL (0.000439)[0m [0mINSERT INTO `schema_migrations` (version) VALUES ('11')[0m
|
3203
|
+
DEPRECATION WARNING: config.action_view.cache_template_extensions option has been deprecated and has no affect. Please remove it from your config files. See http://www.rubyonrails.org/deprecation for details. (called from send at /Library/Ruby/Gems/1.8/gems/rails-2.1.1/lib/initializer.rb:464)
|
3204
|
+
[4;36;1mSQL (0.000187)[0m [0;1mSET SQL_AUTO_IS_NULL=0[0m
|
3205
|
+
[4;35;1mSQL (0.000436)[0m [0mSHOW TABLES[0m
|
3206
|
+
[4;36;1mSQL (0.000195)[0m [0;1mSELECT version FROM schema_migrations[0m
|
3207
|
+
[4;35;1mSQL (0.000094)[0m [0mSET SQL_AUTO_IS_NULL=0[0m
|
3208
|
+
[4;36;1mSQL (0.051843)[0m [0;1mDROP DATABASE IF EXISTS `resource_controller_test`[0m
|
3209
|
+
[4;35;1mSQL (0.000369)[0m [0mCREATE DATABASE `resource_controller_test` DEFAULT CHARACTER SET `utf8`[0m
|
3210
|
+
[4;36;1mSQL (0.000093)[0m [0;1mSET SQL_AUTO_IS_NULL=0[0m
|
3211
|
+
[4;35;1mSQL (0.000267)[0m [0mSHOW TABLES[0m
|
3212
|
+
[4;36;1mSQL (0.003062)[0m [0;1mCREATE TABLE `accounts` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255)) ENGINE=InnoDB[0m
|
3213
|
+
[4;35;1mSQL (0.000234)[0m [0mSHOW TABLES[0m
|
3214
|
+
[4;36;1mSQL (0.001544)[0m [0;1mCREATE TABLE `comments` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `post_id` int(11), `author` varchar(255), `body` text) ENGINE=InnoDB[0m
|
3215
|
+
[4;35;1mSQL (0.000226)[0m [0mSHOW TABLES[0m
|
3216
|
+
[4;36;1mSQL (0.004925)[0m [0;1mCREATE TABLE `images` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `user_id` int(11), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB[0m
|
3217
|
+
[4;35;1mSQL (0.000294)[0m [0mSHOW TABLES[0m
|
3218
|
+
[4;36;1mSQL (0.001574)[0m [0;1mCREATE TABLE `options` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `product_id` int(11), `account_id` int(11), `title` varchar(255)) ENGINE=InnoDB[0m
|
3219
|
+
[4;35;1mSQL (0.000238)[0m [0mSHOW TABLES[0m
|
3220
|
+
[4;36;1mSQL (0.004714)[0m [0;1mCREATE TABLE `photos` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `account_id` int(11)) ENGINE=InnoDB[0m
|
3221
|
+
[4;35;1mSQL (0.000266)[0m [0mSHOW TABLES[0m
|
3222
|
+
[4;36;1mSQL (0.001606)[0m [0;1mCREATE TABLE `photos_tags` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `photo_id` int(11), `tag_id` int(11)) ENGINE=InnoDB[0m
|
3223
|
+
[4;35;1mSQL (0.000267)[0m [0mSHOW TABLES[0m
|
3224
|
+
[4;36;1mSQL (0.004614)[0m [0;1mCREATE TABLE `posts` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255) DEFAULT '', `body` text) ENGINE=InnoDB[0m
|
3225
|
+
[4;35;1mSQL (0.000315)[0m [0mSHOW TABLES[0m
|
3226
|
+
[4;36;1mSQL (0.001526)[0m [0;1mCREATE TABLE `products` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255)) ENGINE=InnoDB[0m
|
3227
|
+
[4;35;1mSQL (0.000260)[0m [0mSHOW TABLES[0m
|
3228
|
+
[4;36;1mSQL (0.005094)[0m [0;1mCREATE TABLE `projects` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255)) ENGINE=InnoDB[0m
|
3229
|
+
[4;35;1mSQL (0.000315)[0m [0mSHOW TABLES[0m
|
3230
|
+
[4;36;1mSQL (0.007433)[0m [0;1mCREATE TABLE `somethings` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255)) ENGINE=InnoDB[0m
|
3231
|
+
[4;35;1mSQL (0.000314)[0m [0mSHOW TABLES[0m
|
3232
|
+
[4;36;1mSQL (0.001541)[0m [0;1mCREATE TABLE `tags` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255)) ENGINE=InnoDB[0m
|
3233
|
+
[4;35;1mSQL (0.000347)[0m [0mSHOW TABLES[0m
|
3234
|
+
[4;36;1mSQL (0.004778)[0m [0;1mCREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB[0m
|
3235
|
+
[4;35;1mSQL (0.000306)[0m [0mSHOW TABLES[0m
|
3236
|
+
[4;36;1mSQL (0.001443)[0m [0;1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
|
3237
|
+
[4;35;1mSQL (0.007848)[0m [0mCREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)[0m
|
3238
|
+
[4;36;1mSQL (0.000408)[0m [0;1mSHOW TABLES[0m
|
3239
|
+
[4;35;1mSQL (0.000259)[0m [0mSELECT version FROM `schema_migrations`[0m
|
3240
|
+
[4;36;1mSQL (0.000394)[0m [0;1mINSERT INTO `schema_migrations` (version) VALUES ('12')[0m
|
3241
|
+
[4;35;1mSQL (0.000435)[0m [0mINSERT INTO `schema_migrations` (version) VALUES ('1')[0m
|
3242
|
+
[4;36;1mSQL (0.000329)[0m [0;1mINSERT INTO `schema_migrations` (version) VALUES ('2')[0m
|
3243
|
+
[4;35;1mSQL (0.000442)[0m [0mINSERT INTO `schema_migrations` (version) VALUES ('3')[0m
|
3244
|
+
[4;36;1mSQL (0.000325)[0m [0;1mINSERT INTO `schema_migrations` (version) VALUES ('4')[0m
|
3245
|
+
[4;35;1mSQL (0.000518)[0m [0mINSERT INTO `schema_migrations` (version) VALUES ('5')[0m
|
3246
|
+
[4;36;1mSQL (0.000400)[0m [0;1mINSERT INTO `schema_migrations` (version) VALUES ('6')[0m
|
3247
|
+
[4;35;1mSQL (0.000445)[0m [0mINSERT INTO `schema_migrations` (version) VALUES ('7')[0m
|
3248
|
+
[4;36;1mSQL (0.000330)[0m [0;1mINSERT INTO `schema_migrations` (version) VALUES ('8')[0m
|
3249
|
+
[4;35;1mSQL (0.000468)[0m [0mINSERT INTO `schema_migrations` (version) VALUES ('9')[0m
|
3250
|
+
[4;36;1mSQL (0.000342)[0m [0;1mINSERT INTO `schema_migrations` (version) VALUES ('10')[0m
|
3251
|
+
[4;35;1mSQL (0.000438)[0m [0mINSERT INTO `schema_migrations` (version) VALUES ('11')[0m
|
3252
|
+
DEPRECATION WARNING: config.action_view.cache_template_extensions option has been deprecated and has no affect. Please remove it from your config files. See http://www.rubyonrails.org/deprecation for details. (called from send at /Library/Ruby/Gems/1.8/gems/rails-2.1.1/lib/initializer.rb:464)
|
3253
|
+
DEPRECATION WARNING: config.action_view.cache_template_extensions option has been deprecated and has no affect. Please remove it from your config files. See http://www.rubyonrails.org/deprecation for details. (called from send at /Library/Ruby/Gems/1.8/gems/rails-2.1.1/lib/initializer.rb:464)
|
3254
|
+
[4;36;1mSQL (0.000194)[0m [0;1mSET SQL_AUTO_IS_NULL=0[0m
|
3255
|
+
[4;35;1mSQL (0.000467)[0m [0mSHOW TABLES[0m
|
3256
|
+
[4;36;1mSQL (0.000193)[0m [0;1mSELECT version FROM schema_migrations[0m
|
3257
|
+
[4;35;1mSQL (0.000162)[0m [0mSET SQL_AUTO_IS_NULL=0[0m
|
3258
|
+
[4;36;1mSQL (0.083048)[0m [0;1mDROP DATABASE IF EXISTS `resource_controller_test`[0m
|
3259
|
+
[4;35;1mSQL (0.000359)[0m [0mCREATE DATABASE `resource_controller_test` DEFAULT CHARACTER SET `utf8`[0m
|
3260
|
+
[4;36;1mSQL (0.000109)[0m [0;1mSET SQL_AUTO_IS_NULL=0[0m
|
3261
|
+
[4;35;1mSQL (0.000274)[0m [0mSHOW TABLES[0m
|
3262
|
+
[4;36;1mSQL (0.001971)[0m [0;1mCREATE TABLE `accounts` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255)) ENGINE=InnoDB[0m
|
3263
|
+
[4;35;1mSQL (0.000242)[0m [0mSHOW TABLES[0m
|
3264
|
+
[4;36;1mSQL (0.001439)[0m [0;1mCREATE TABLE `comments` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `post_id` int(11), `author` varchar(255), `body` text) ENGINE=InnoDB[0m
|
3265
|
+
[4;35;1mSQL (0.000261)[0m [0mSHOW TABLES[0m
|
3266
|
+
[4;36;1mSQL (0.022191)[0m [0;1mCREATE TABLE `images` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `user_id` int(11), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB[0m
|
3267
|
+
[4;35;1mSQL (0.000306)[0m [0mSHOW TABLES[0m
|
3268
|
+
[4;36;1mSQL (0.007071)[0m [0;1mCREATE TABLE `options` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `product_id` int(11), `account_id` int(11), `title` varchar(255)) ENGINE=InnoDB[0m
|
3269
|
+
[4;35;1mSQL (0.000267)[0m [0mSHOW TABLES[0m
|
3270
|
+
[4;36;1mSQL (0.001667)[0m [0;1mCREATE TABLE `photos` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `account_id` int(11)) ENGINE=InnoDB[0m
|
3271
|
+
[4;35;1mSQL (0.000324)[0m [0mSHOW TABLES[0m
|
3272
|
+
[4;36;1mSQL (0.005277)[0m [0;1mCREATE TABLE `photos_tags` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `photo_id` int(11), `tag_id` int(11)) ENGINE=InnoDB[0m
|
3273
|
+
[4;35;1mSQL (0.000298)[0m [0mSHOW TABLES[0m
|
3274
|
+
[4;36;1mSQL (0.001706)[0m [0;1mCREATE TABLE `posts` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255) DEFAULT '', `body` text) ENGINE=InnoDB[0m
|
3275
|
+
[4;35;1mSQL (0.000263)[0m [0mSHOW TABLES[0m
|
3276
|
+
[4;36;1mSQL (0.037609)[0m [0;1mCREATE TABLE `products` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255)) ENGINE=InnoDB[0m
|
3277
|
+
[4;35;1mSQL (0.000410)[0m [0mSHOW TABLES[0m
|
3278
|
+
[4;36;1mSQL (0.001618)[0m [0;1mCREATE TABLE `projects` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255)) ENGINE=InnoDB[0m
|
3279
|
+
[4;35;1mSQL (0.000267)[0m [0mSHOW TABLES[0m
|
3280
|
+
[4;36;1mSQL (0.005085)[0m [0;1mCREATE TABLE `somethings` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255)) ENGINE=InnoDB[0m
|
3281
|
+
[4;35;1mSQL (0.000284)[0m [0mSHOW TABLES[0m
|
3282
|
+
[4;36;1mSQL (0.001717)[0m [0;1mCREATE TABLE `tags` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255)) ENGINE=InnoDB[0m
|
3283
|
+
[4;35;1mSQL (0.000338)[0m [0mSHOW TABLES[0m
|
3284
|
+
[4;36;1mSQL (0.037592)[0m [0;1mCREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB[0m
|
3285
|
+
[4;35;1mSQL (0.000351)[0m [0mSHOW TABLES[0m
|
3286
|
+
[4;36;1mSQL (0.001574)[0m [0;1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
|
3287
|
+
[4;35;1mSQL (0.008445)[0m [0mCREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)[0m
|
3288
|
+
[4;36;1mSQL (0.000626)[0m [0;1mSHOW TABLES[0m
|
3289
|
+
[4;35;1mSQL (0.000373)[0m [0mSELECT version FROM `schema_migrations`[0m
|
3290
|
+
[4;36;1mSQL (0.004179)[0m [0;1mINSERT INTO `schema_migrations` (version) VALUES ('12')[0m
|
3291
|
+
[4;35;1mSQL (0.000418)[0m [0mINSERT INTO `schema_migrations` (version) VALUES ('1')[0m
|
3292
|
+
[4;36;1mSQL (0.000469)[0m [0;1mINSERT INTO `schema_migrations` (version) VALUES ('2')[0m
|
3293
|
+
[4;35;1mSQL (0.000330)[0m [0mINSERT INTO `schema_migrations` (version) VALUES ('3')[0m
|
3294
|
+
[4;36;1mSQL (0.000448)[0m [0;1mINSERT INTO `schema_migrations` (version) VALUES ('4')[0m
|
3295
|
+
[4;35;1mSQL (0.000321)[0m [0mINSERT INTO `schema_migrations` (version) VALUES ('5')[0m
|
3296
|
+
[4;36;1mSQL (0.000450)[0m [0;1mINSERT INTO `schema_migrations` (version) VALUES ('6')[0m
|
3297
|
+
[4;35;1mSQL (0.000321)[0m [0mINSERT INTO `schema_migrations` (version) VALUES ('7')[0m
|
3298
|
+
[4;36;1mSQL (0.000452)[0m [0;1mINSERT INTO `schema_migrations` (version) VALUES ('8')[0m
|
3299
|
+
[4;35;1mSQL (0.000320)[0m [0mINSERT INTO `schema_migrations` (version) VALUES ('9')[0m
|
3300
|
+
[4;36;1mSQL (0.000450)[0m [0;1mINSERT INTO `schema_migrations` (version) VALUES ('10')[0m
|
3301
|
+
[4;35;1mSQL (0.000320)[0m [0mINSERT INTO `schema_migrations` (version) VALUES ('11')[0m
|
3302
|
+
DEPRECATION WARNING: config.action_view.cache_template_extensions option has been deprecated and has no affect. Please remove it from your config files. See http://www.rubyonrails.org/deprecation for details. (called from send at /Library/Ruby/Gems/1.8/gems/rails-2.1.1/lib/initializer.rb:464)
|
3303
|
+
[4;36;1mSQL (0.000186)[0m [0;1mSET SQL_AUTO_IS_NULL=0[0m
|
3304
|
+
[4;35;1mSQL (0.000406)[0m [0mSHOW TABLES[0m
|
3305
|
+
[4;36;1mSQL (0.000193)[0m [0;1mSELECT version FROM schema_migrations[0m
|
3306
|
+
[4;35;1mSQL (0.000105)[0m [0mSET SQL_AUTO_IS_NULL=0[0m
|
3307
|
+
[4;36;1mSQL (0.048688)[0m [0;1mDROP DATABASE IF EXISTS `resource_controller_test`[0m
|
3308
|
+
[4;35;1mSQL (0.000399)[0m [0mCREATE DATABASE `resource_controller_test` DEFAULT CHARACTER SET `utf8`[0m
|
3309
|
+
[4;36;1mSQL (0.000138)[0m [0;1mSET SQL_AUTO_IS_NULL=0[0m
|
3310
|
+
[4;35;1mSQL (0.000278)[0m [0mSHOW TABLES[0m
|
3311
|
+
[4;36;1mSQL (0.001683)[0m [0;1mCREATE TABLE `accounts` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255)) ENGINE=InnoDB[0m
|
3312
|
+
[4;35;1mSQL (0.000232)[0m [0mSHOW TABLES[0m
|
3313
|
+
[4;36;1mSQL (0.036525)[0m [0;1mCREATE TABLE `comments` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `post_id` int(11), `author` varchar(255), `body` text) ENGINE=InnoDB[0m
|
3314
|
+
[4;35;1mSQL (0.000298)[0m [0mSHOW TABLES[0m
|
3315
|
+
[4;36;1mSQL (0.001628)[0m [0;1mCREATE TABLE `images` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `user_id` int(11), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB[0m
|
3316
|
+
[4;35;1mSQL (0.000239)[0m [0mSHOW TABLES[0m
|
3317
|
+
[4;36;1mSQL (0.005942)[0m [0;1mCREATE TABLE `options` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `product_id` int(11), `account_id` int(11), `title` varchar(255)) ENGINE=InnoDB[0m
|
3318
|
+
[4;35;1mSQL (0.000256)[0m [0mSHOW TABLES[0m
|
3319
|
+
[4;36;1mSQL (0.001805)[0m [0;1mCREATE TABLE `photos` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `account_id` int(11)) ENGINE=InnoDB[0m
|
3320
|
+
[4;35;1mSQL (0.000246)[0m [0mSHOW TABLES[0m
|
3321
|
+
[4;36;1mSQL (0.029334)[0m [0;1mCREATE TABLE `photos_tags` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `photo_id` int(11), `tag_id` int(11)) ENGINE=InnoDB[0m
|
3322
|
+
[4;35;1mSQL (0.000304)[0m [0mSHOW TABLES[0m
|
3323
|
+
[4;36;1mSQL (0.001556)[0m [0;1mCREATE TABLE `posts` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255) DEFAULT '', `body` text) ENGINE=InnoDB[0m
|
3324
|
+
[4;35;1mSQL (0.000308)[0m [0mSHOW TABLES[0m
|
3325
|
+
[4;36;1mSQL (0.004759)[0m [0;1mCREATE TABLE `products` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255)) ENGINE=InnoDB[0m
|
3326
|
+
[4;35;1mSQL (0.000308)[0m [0mSHOW TABLES[0m
|
3327
|
+
[4;36;1mSQL (0.001507)[0m [0;1mCREATE TABLE `projects` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255)) ENGINE=InnoDB[0m
|
3328
|
+
[4;35;1mSQL (0.000301)[0m [0mSHOW TABLES[0m
|
3329
|
+
[4;36;1mSQL (0.005414)[0m [0;1mCREATE TABLE `somethings` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255)) ENGINE=InnoDB[0m
|
3330
|
+
[4;35;1mSQL (0.000329)[0m [0mSHOW TABLES[0m
|
3331
|
+
[4;36;1mSQL (0.001591)[0m [0;1mCREATE TABLE `tags` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255)) ENGINE=InnoDB[0m
|
3332
|
+
[4;35;1mSQL (0.000273)[0m [0mSHOW TABLES[0m
|
3333
|
+
[4;36;1mSQL (0.029274)[0m [0;1mCREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB[0m
|
3334
|
+
[4;35;1mSQL (0.000366)[0m [0mSHOW TABLES[0m
|
3335
|
+
[4;36;1mSQL (0.001519)[0m [0;1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
|
3336
|
+
[4;35;1mSQL (0.009226)[0m [0mCREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)[0m
|
3337
|
+
[4;36;1mSQL (0.001124)[0m [0;1mSHOW TABLES[0m
|
3338
|
+
[4;35;1mSQL (0.000385)[0m [0mSELECT version FROM `schema_migrations`[0m
|
3339
|
+
[4;36;1mSQL (0.000460)[0m [0;1mINSERT INTO `schema_migrations` (version) VALUES ('12')[0m
|
3340
|
+
[4;35;1mSQL (0.000491)[0m [0mINSERT INTO `schema_migrations` (version) VALUES ('1')[0m
|
3341
|
+
[4;36;1mSQL (0.000483)[0m [0;1mINSERT INTO `schema_migrations` (version) VALUES ('2')[0m
|
3342
|
+
[4;35;1mSQL (0.000349)[0m [0mINSERT INTO `schema_migrations` (version) VALUES ('3')[0m
|
3343
|
+
[4;36;1mSQL (0.000436)[0m [0;1mINSERT INTO `schema_migrations` (version) VALUES ('4')[0m
|
3344
|
+
[4;35;1mSQL (0.000337)[0m [0mINSERT INTO `schema_migrations` (version) VALUES ('5')[0m
|
3345
|
+
[4;36;1mSQL (0.000440)[0m [0;1mINSERT INTO `schema_migrations` (version) VALUES ('6')[0m
|
3346
|
+
[4;35;1mSQL (0.024000)[0m [0mINSERT INTO `schema_migrations` (version) VALUES ('7')[0m
|
3347
|
+
[4;36;1mSQL (0.000430)[0m [0;1mINSERT INTO `schema_migrations` (version) VALUES ('8')[0m
|
3348
|
+
[4;35;1mSQL (0.000457)[0m [0mINSERT INTO `schema_migrations` (version) VALUES ('9')[0m
|
3349
|
+
[4;36;1mSQL (0.000381)[0m [0;1mINSERT INTO `schema_migrations` (version) VALUES ('10')[0m
|
3350
|
+
[4;35;1mSQL (0.000441)[0m [0mINSERT INTO `schema_migrations` (version) VALUES ('11')[0m
|