mass_record 0.0.4.0 → 0.0.4.1
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 +4 -4
- data/lib/mass_record.rb +2 -2
- data/lib/mass_record/version.rb +1 -1
- data/test/dummy/app/assets/javascripts/mysql_widgets.js +2 -0
- data/test/dummy/app/assets/javascripts/sql_server_widgets.js +2 -0
- data/test/dummy/app/assets/javascripts/widgets.js +2 -0
- data/test/dummy/app/assets/stylesheets/mysql_widgets.css +4 -0
- data/test/dummy/app/assets/stylesheets/scaffold.css +56 -0
- data/test/dummy/app/assets/stylesheets/sql_server_widgets.css +4 -0
- data/test/dummy/app/assets/stylesheets/widgets.css +4 -0
- data/test/dummy/app/controllers/mysql_widgets_controller.rb +58 -0
- data/test/dummy/app/controllers/sql_server_widgets_controller.rb +58 -0
- data/test/dummy/app/controllers/widgets_controller.rb +58 -0
- data/test/dummy/app/helpers/mysql_widgets_helper.rb +2 -0
- data/test/dummy/app/helpers/sql_server_widgets_helper.rb +2 -0
- data/test/dummy/app/helpers/widgets_helper.rb +2 -0
- data/test/dummy/app/models/mysql_widget.rb +4 -0
- data/test/dummy/app/models/sql_server_widget.rb +4 -0
- data/test/dummy/app/models/widget.rb +4 -0
- data/test/dummy/app/views/mysql_widgets/_form.html.erb +89 -0
- data/test/dummy/app/views/mysql_widgets/edit.html.erb +6 -0
- data/test/dummy/app/views/mysql_widgets/index.html.erb +59 -0
- data/test/dummy/app/views/mysql_widgets/new.html.erb +5 -0
- data/test/dummy/app/views/mysql_widgets/show.html.erb +94 -0
- data/test/dummy/app/views/sql_server_widgets/_form.html.erb +89 -0
- data/test/dummy/app/views/sql_server_widgets/edit.html.erb +6 -0
- data/test/dummy/app/views/sql_server_widgets/index.html.erb +59 -0
- data/test/dummy/app/views/sql_server_widgets/new.html.erb +5 -0
- data/test/dummy/app/views/sql_server_widgets/show.html.erb +94 -0
- data/test/dummy/app/views/widgets/_form.html.erb +89 -0
- data/test/dummy/app/views/widgets/edit.html.erb +6 -0
- data/test/dummy/app/views/widgets/index.html.erb +59 -0
- data/test/dummy/app/views/widgets/new.html.erb +5 -0
- data/test/dummy/app/views/widgets/show.html.erb +94 -0
- data/test/dummy/config/database.yml +46 -1
- data/test/dummy/config/routes.rb +6 -0
- data/test/dummy/db/development +0 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20141208210434_create_mysql_widgets.rb +27 -0
- data/test/dummy/db/migrate/20141208221412_create_widgets.rb +27 -0
- data/test/dummy/db/migrate/20141208225325_create_sql_server_widgets.rb.ignore +27 -0
- data/test/dummy/db/production.sqlite3 +0 -0
- data/test/dummy/db/schema.rb +41 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +197 -0
- data/test/dummy/log/mysql_development.log +13 -0
- data/test/dummy/log/mysql_test.log +7 -0
- data/test/dummy/log/sql_server_development.log +9 -0
- data/test/dummy/log/test.log +51 -0
- data/test/dummy/test/controllers/mysql_widgets_controller_test.rb +49 -0
- data/test/dummy/test/controllers/sql_server_widgets_controller_test.rb +49 -0
- data/test/dummy/test/controllers/widgets_controller_test.rb +49 -0
- data/test/dummy/test/fixtures/mysql_widgets.yml +41 -0
- data/test/dummy/test/fixtures/sql_server_widgets.yml +41 -0
- data/test/dummy/test/fixtures/widgets.yml +41 -0
- data/test/dummy/test/helpers/mysql_widgets_helper_test.rb +4 -0
- data/test/dummy/test/helpers/sql_server_widgets_helper_test.rb +4 -0
- data/test/dummy/test/helpers/widgets_helper_test.rb +33 -0
- data/test/dummy/test/models/mysql_widget_test.rb +7 -0
- data/test/dummy/test/models/sql_server_widget_test.rb +7 -0
- data/test/dummy/test/models/widget_test.rb +7 -0
- data/test/dummy/tmp/sample.jpg +0 -0
- data/test/dummy/tmp/sample2.jpg +0 -0
- data/test/dummy/tmp/sample3.jpg +0 -0
- metadata +176 -2
@@ -0,0 +1,59 @@
|
|
1
|
+
<h1>Listing widgets</h1>
|
2
|
+
|
3
|
+
<table>
|
4
|
+
<thead>
|
5
|
+
<tr>
|
6
|
+
<th>Binary</th>
|
7
|
+
<th>Boolean</th>
|
8
|
+
<th>Date</th>
|
9
|
+
<th>Datetime</th>
|
10
|
+
<th>Decimal</th>
|
11
|
+
<th>Float</th>
|
12
|
+
<th>Integer</th>
|
13
|
+
<th>References</th>
|
14
|
+
<th>String</th>
|
15
|
+
<th>Text</th>
|
16
|
+
<th>Time</th>
|
17
|
+
<th>Timestamp</th>
|
18
|
+
<th>Hstore</th>
|
19
|
+
<th>Json</th>
|
20
|
+
<th>Array</th>
|
21
|
+
<th>Cidr address</th>
|
22
|
+
<th>Ip address</th>
|
23
|
+
<th>Mac address</th>
|
24
|
+
<th colspan="3"></th>
|
25
|
+
</tr>
|
26
|
+
</thead>
|
27
|
+
|
28
|
+
<tbody>
|
29
|
+
<% @widgets.each do |widget| %>
|
30
|
+
<tr>
|
31
|
+
<td><%= widget.binary %></td>
|
32
|
+
<td><%= widget.boolean %></td>
|
33
|
+
<td><%= widget.date %></td>
|
34
|
+
<td><%= widget.datetime %></td>
|
35
|
+
<td><%= widget.decimal %></td>
|
36
|
+
<td><%= widget.float %></td>
|
37
|
+
<td><%= widget.integer %></td>
|
38
|
+
<td><%= widget.references %></td>
|
39
|
+
<td><%= widget.string %></td>
|
40
|
+
<td><%= widget.text %></td>
|
41
|
+
<td><%= widget.time %></td>
|
42
|
+
<td><%= widget.timestamp %></td>
|
43
|
+
<td><%= widget.hstore %></td>
|
44
|
+
<td><%= widget.json %></td>
|
45
|
+
<td><%= widget.array %></td>
|
46
|
+
<td><%= widget.cidr_address %></td>
|
47
|
+
<td><%= widget.ip_address %></td>
|
48
|
+
<td><%= widget.mac_address %></td>
|
49
|
+
<td><%= link_to 'Show', widget %></td>
|
50
|
+
<td><%= link_to 'Edit', edit_widget_path(widget) %></td>
|
51
|
+
<td><%= link_to 'Destroy', widget, method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
52
|
+
</tr>
|
53
|
+
<% end %>
|
54
|
+
</tbody>
|
55
|
+
</table>
|
56
|
+
|
57
|
+
<br>
|
58
|
+
|
59
|
+
<%= link_to 'New Widget', new_widget_path %>
|
@@ -0,0 +1,94 @@
|
|
1
|
+
<p id="notice"><%= notice %></p>
|
2
|
+
|
3
|
+
<p>
|
4
|
+
<strong>Binary:</strong>
|
5
|
+
<%= @widget.binary %>
|
6
|
+
</p>
|
7
|
+
|
8
|
+
<p>
|
9
|
+
<strong>Boolean:</strong>
|
10
|
+
<%= @widget.boolean %>
|
11
|
+
</p>
|
12
|
+
|
13
|
+
<p>
|
14
|
+
<strong>Date:</strong>
|
15
|
+
<%= @widget.date %>
|
16
|
+
</p>
|
17
|
+
|
18
|
+
<p>
|
19
|
+
<strong>Datetime:</strong>
|
20
|
+
<%= @widget.datetime %>
|
21
|
+
</p>
|
22
|
+
|
23
|
+
<p>
|
24
|
+
<strong>Decimal:</strong>
|
25
|
+
<%= @widget.decimal %>
|
26
|
+
</p>
|
27
|
+
|
28
|
+
<p>
|
29
|
+
<strong>Float:</strong>
|
30
|
+
<%= @widget.float %>
|
31
|
+
</p>
|
32
|
+
|
33
|
+
<p>
|
34
|
+
<strong>Integer:</strong>
|
35
|
+
<%= @widget.integer %>
|
36
|
+
</p>
|
37
|
+
|
38
|
+
<p>
|
39
|
+
<strong>References:</strong>
|
40
|
+
<%= @widget.references %>
|
41
|
+
</p>
|
42
|
+
|
43
|
+
<p>
|
44
|
+
<strong>String:</strong>
|
45
|
+
<%= @widget.string %>
|
46
|
+
</p>
|
47
|
+
|
48
|
+
<p>
|
49
|
+
<strong>Text:</strong>
|
50
|
+
<%= @widget.text %>
|
51
|
+
</p>
|
52
|
+
|
53
|
+
<p>
|
54
|
+
<strong>Time:</strong>
|
55
|
+
<%= @widget.time %>
|
56
|
+
</p>
|
57
|
+
|
58
|
+
<p>
|
59
|
+
<strong>Timestamp:</strong>
|
60
|
+
<%= @widget.timestamp %>
|
61
|
+
</p>
|
62
|
+
|
63
|
+
<p>
|
64
|
+
<strong>Hstore:</strong>
|
65
|
+
<%= @widget.hstore %>
|
66
|
+
</p>
|
67
|
+
|
68
|
+
<p>
|
69
|
+
<strong>Json:</strong>
|
70
|
+
<%= @widget.json %>
|
71
|
+
</p>
|
72
|
+
|
73
|
+
<p>
|
74
|
+
<strong>Array:</strong>
|
75
|
+
<%= @widget.array %>
|
76
|
+
</p>
|
77
|
+
|
78
|
+
<p>
|
79
|
+
<strong>Cidr address:</strong>
|
80
|
+
<%= @widget.cidr_address %>
|
81
|
+
</p>
|
82
|
+
|
83
|
+
<p>
|
84
|
+
<strong>Ip address:</strong>
|
85
|
+
<%= @widget.ip_address %>
|
86
|
+
</p>
|
87
|
+
|
88
|
+
<p>
|
89
|
+
<strong>Mac address:</strong>
|
90
|
+
<%= @widget.mac_address %>
|
91
|
+
</p>
|
92
|
+
|
93
|
+
<%= link_to 'Edit', edit_widget_path(@widget) %> |
|
94
|
+
<%= link_to 'Back', widgets_path %>
|
@@ -3,11 +3,12 @@
|
|
3
3
|
#
|
4
4
|
# Ensure the SQLite 3 gem is defined in your Gemfile
|
5
5
|
# gem 'sqlite3'
|
6
|
-
|
6
|
+
|
7
7
|
default: &default
|
8
8
|
adapter: sqlite3
|
9
9
|
pool: 5
|
10
10
|
timeout: 5000
|
11
|
+
encoding: utf8
|
11
12
|
|
12
13
|
development:
|
13
14
|
<<: *default
|
@@ -23,3 +24,47 @@ test:
|
|
23
24
|
production:
|
24
25
|
<<: *default
|
25
26
|
database: db/production.sqlite3
|
27
|
+
|
28
|
+
# MYSQL
|
29
|
+
|
30
|
+
mysql_default: &mysql_default
|
31
|
+
adapter: mysql2
|
32
|
+
host: mccoy
|
33
|
+
password: honesty~1
|
34
|
+
username: root
|
35
|
+
pool: 5
|
36
|
+
timeout: 5000
|
37
|
+
encoding: utf8
|
38
|
+
|
39
|
+
mysql_development:
|
40
|
+
<<: *mysql_default
|
41
|
+
database: engine_development
|
42
|
+
|
43
|
+
mysql_test:
|
44
|
+
<<: *mysql_default
|
45
|
+
database: engine_test
|
46
|
+
|
47
|
+
# SQL SERVER
|
48
|
+
|
49
|
+
sql_server_default: &sql_server_default
|
50
|
+
adapter: sqlserver
|
51
|
+
host: rhodes
|
52
|
+
username: sa
|
53
|
+
password: honesty~1
|
54
|
+
pool: 5
|
55
|
+
timeout: 5000
|
56
|
+
|
57
|
+
sql_server_development: &sql_server_development
|
58
|
+
<<: *sql_server_default
|
59
|
+
database: engine_development
|
60
|
+
|
61
|
+
# development:
|
62
|
+
# <<: *sql_server_development
|
63
|
+
|
64
|
+
sql_server_test: &sql_server_test
|
65
|
+
<<: *sql_server_default
|
66
|
+
database: engine_test
|
67
|
+
|
68
|
+
# test:
|
69
|
+
# <<: *sql_server_test
|
70
|
+
|
data/test/dummy/config/routes.rb
CHANGED
File without changes
|
Binary file
|
@@ -0,0 +1,27 @@
|
|
1
|
+
ActiveRecord::Base.establish_connection("mysql_#{Rails.env}".to_sym)
|
2
|
+
class CreateMysqlWidgets < ActiveRecord::Migration
|
3
|
+
def change
|
4
|
+
create_table :mysql_widgets do |t|
|
5
|
+
t.binary :binary
|
6
|
+
t.boolean :boolean
|
7
|
+
t.date :date
|
8
|
+
t.datetime :datetime
|
9
|
+
t.decimal :decimal
|
10
|
+
t.float :float
|
11
|
+
t.integer :integer
|
12
|
+
t.references :references, index: true
|
13
|
+
t.string :string
|
14
|
+
t.text :text
|
15
|
+
t.time :time
|
16
|
+
t.timestamp :timestamp
|
17
|
+
t.text :hstore
|
18
|
+
t.text :json
|
19
|
+
t.text :array
|
20
|
+
t.text :cidr_address
|
21
|
+
t.text :ip_address
|
22
|
+
t.text :mac_address
|
23
|
+
|
24
|
+
t.timestamps
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
ActiveRecord::Base.establish_connection("#{Rails.env}".to_sym)
|
2
|
+
class CreateWidgets < ActiveRecord::Migration
|
3
|
+
def change
|
4
|
+
create_table :widgets do |t|
|
5
|
+
t.binary :binary
|
6
|
+
t.boolean :boolean
|
7
|
+
t.date :date
|
8
|
+
t.datetime :datetime
|
9
|
+
t.decimal :decimal
|
10
|
+
t.float :float
|
11
|
+
t.integer :integer
|
12
|
+
t.references :references, index: true
|
13
|
+
t.string :string
|
14
|
+
t.text :text
|
15
|
+
t.time :time
|
16
|
+
t.timestamp :timestamp
|
17
|
+
t.text :hstore
|
18
|
+
t.text :json
|
19
|
+
t.text :array
|
20
|
+
t.text :cidr_address
|
21
|
+
t.text :ip_address
|
22
|
+
t.text :mac_address
|
23
|
+
|
24
|
+
t.timestamps
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
ActiveRecord::Base.establish_connection("sql_server_#{Rails.env}".to_sym)
|
2
|
+
class CreateSqlServerWidgets < ActiveRecord::Migration
|
3
|
+
def change
|
4
|
+
create_table :sql_server_widgets do |t|
|
5
|
+
t.binary :binary
|
6
|
+
t.boolean :boolean
|
7
|
+
t.date :date
|
8
|
+
t.datetime :datetime
|
9
|
+
t.decimal :decimal
|
10
|
+
t.float :float
|
11
|
+
t.integer :integer
|
12
|
+
t.references :references, index: true
|
13
|
+
t.string :string
|
14
|
+
t.text :text
|
15
|
+
t.time :time
|
16
|
+
t.timestamp :timestamp
|
17
|
+
t.text :hstore
|
18
|
+
t.text :json
|
19
|
+
t.text :array
|
20
|
+
t.text :cidr_address
|
21
|
+
t.text :ip_address
|
22
|
+
t.text :mac_address
|
23
|
+
|
24
|
+
t.timestamps
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
File without changes
|
@@ -0,0 +1,41 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
# This file is auto-generated from the current state of the database. Instead
|
3
|
+
# of editing this file, please use the migrations feature of Active Record to
|
4
|
+
# incrementally modify your database, and then regenerate this schema definition.
|
5
|
+
#
|
6
|
+
# Note that this schema.rb definition is the authoritative source for your
|
7
|
+
# database schema. If you need to create the application database on another
|
8
|
+
# system, you should be using db:schema:load, not running all the migrations
|
9
|
+
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
10
|
+
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
11
|
+
#
|
12
|
+
# It's strongly recommended that you check this file into your version control system.
|
13
|
+
|
14
|
+
ActiveRecord::Schema.define(version: 20141208221412) do
|
15
|
+
|
16
|
+
create_table "widgets", force: true do |t|
|
17
|
+
t.binary "binary"
|
18
|
+
t.boolean "boolean"
|
19
|
+
t.date "date"
|
20
|
+
t.datetime "datetime"
|
21
|
+
t.decimal "decimal"
|
22
|
+
t.float "float"
|
23
|
+
t.integer "integer"
|
24
|
+
t.integer "references_id"
|
25
|
+
t.string "string"
|
26
|
+
t.text "text"
|
27
|
+
t.time "time"
|
28
|
+
t.datetime "timestamp"
|
29
|
+
t.text "hstore"
|
30
|
+
t.text "json"
|
31
|
+
t.text "array"
|
32
|
+
t.text "cidr_address"
|
33
|
+
t.text "ip_address"
|
34
|
+
t.text "mac_address"
|
35
|
+
t.datetime "created_at"
|
36
|
+
t.datetime "updated_at"
|
37
|
+
end
|
38
|
+
|
39
|
+
add_index "widgets", ["references_id"], name: "index_widgets_on_references_id"
|
40
|
+
|
41
|
+
end
|
Binary file
|
@@ -0,0 +1,197 @@
|
|
1
|
+
[1m[36m (8.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
2
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
3
|
+
[1m[36m (10.0ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
4
|
+
[1m[35mActiveRecord::SchemaMigration Load (2.9ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
5
|
+
Migrating to CreateWidgets (20141205225041)
|
6
|
+
[1m[36mActiveRecord::SchemaMigration Load (2.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7
|
+
Migrating to CreateMysqlWidgets (20141208204017)
|
8
|
+
[1m[36mActiveRecord::SchemaMigration Load (2.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
9
|
+
Migrating to CreateMysqlWidgets (20141208204507)
|
10
|
+
[1m[35m (0.1ms)[0m begin transaction
|
11
|
+
DEPRECATION WARNING: Passing a string to ActiveRecord::Base.establish_connection for a configuration lookup is deprecated, please pass a symbol (:mysql_development) instead. (called from connection at /vagrant/mass_record/test/dummy/db/migrate/20141208204507_create_mysql_widgets.rb:3)
|
12
|
+
[1m[36mActiveRecord::SchemaMigration Load (2.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13
|
+
Migrating to CreateMysqlWidgets (20141208204507)
|
14
|
+
[1m[35m (0.1ms)[0m begin transaction
|
15
|
+
DEPRECATION WARNING: Passing a string to ActiveRecord::Base.establish_connection for a configuration lookup is deprecated, please pass a symbol (:mysql_development) instead. (called from connection at /vagrant/mass_record/test/dummy/db/migrate/20141208204507_create_mysql_widgets.rb:3)
|
16
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
17
|
+
Migrating to CreateMysqlWidgets (20141208204507)
|
18
|
+
[1m[35m (0.1ms)[0m begin transaction
|
19
|
+
DEPRECATION WARNING: Passing a string to ActiveRecord::Base.establish_connection for a configuration lookup is deprecated, please pass a symbol (:mysql_development) instead. (called from connection at /vagrant/mass_record/test/dummy/db/migrate/20141208204507_create_mysql_widgets.rb:3)
|
20
|
+
DEPRECATION WARNING: Passing a string to ActiveRecord::Base.establish_connection for a configuration lookup is deprecated, please pass a symbol (:mysql_development) instead. (called from connection at /vagrant/mass_record/test/dummy/db/migrate/20141208204507_create_mysql_widgets.rb:3)
|
21
|
+
[1m[36mActiveRecord::SchemaMigration Load (3.0ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
22
|
+
Migrating to CreateMysqlWidgets (20141208204507)
|
23
|
+
[1m[35m (0.1ms)[0m begin transaction
|
24
|
+
DEPRECATION WARNING: Passing a string to ActiveRecord::Base.establish_connection for a configuration lookup is deprecated, please pass a symbol (:mysql_development) instead. (called from change at /vagrant/mass_record/test/dummy/db/migrate/20141208204507_create_mysql_widgets.rb:3)
|
25
|
+
[1m[36mActiveRecord::SchemaMigration Load (2.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
26
|
+
Migrating to CreateMysqlWidgets (20141208204507)
|
27
|
+
DEPRECATION WARNING: Passing a string to ActiveRecord::Base.establish_connection for a configuration lookup is deprecated, please pass a symbol (:mysql_development) instead. (called from <top (required)> at /vagrant/mass_record/test/dummy/db/migrate/20141208204507_create_mysql_widgets.rb:1)
|
28
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
29
|
+
Migrating to CreateMysqlWidgets (20141208210144)
|
30
|
+
DEPRECATION WARNING: Passing a string to ActiveRecord::Base.establish_connection for a configuration lookup is deprecated, please pass a symbol (:mysql_development) instead. (called from <top (required)> at /vagrant/mass_record/test/dummy/db/migrate/20141208210144_create_mysql_widgets.rb:1)
|
31
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
32
|
+
Migrating to CreateMysqlWidgets (20141208210433)
|
33
|
+
DEPRECATION WARNING: Passing a string to ActiveRecord::Base.establish_connection for a configuration lookup is deprecated, please pass a symbol (:mysql_development) instead. (called from <top (required)> at /vagrant/mass_record/test/dummy/db/migrate/20141208210433_create_mysql_widgets.rb:1)
|
34
|
+
[1m[35m (97.5ms)[0m CREATE TABLE `mysql_widgets` (`id` int(11) auto_increment PRIMARY KEY, `binary` blob, `boolean` tinyint(1), `date` date, `datetime` datetime, `decimal` decimal, `float` float, `integer` int(11), `references_id` int(11), `string` varchar(255), `text` text, `time` time, `timestamp` datetime, `hstore` text, `json` text, `array` text, `cidr_address` text, `ip_address` text, `mac_address` text, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
|
35
|
+
[1m[36m (33.0ms)[0m [1mCREATE INDEX `index_mysql_widgets_on_references_id` ON `mysql_widgets` (`references_id`) [0m
|
36
|
+
Mysql2::Error: Table 'engine_development.schema_migrations' doesn't exist: SHOW FULL FIELDS FROM `schema_migrations`
|
37
|
+
[1m[36mActiveRecord::SchemaMigration Load (3.0ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
38
|
+
[1m[35mActiveRecord::SchemaMigration Load (2.8ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
39
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
40
|
+
Migrating to CreateMysqlWidgets (20141208210433)
|
41
|
+
DEPRECATION WARNING: Passing a string to ActiveRecord::Base.establish_connection for a configuration lookup is deprecated, please pass a symbol (:mysql_development) instead. (called from <top (required)> at /vagrant/mass_record/test/dummy/db/migrate/20141208210433_create_mysql_widgets.rb:1)
|
42
|
+
[1m[35m (11.6ms)[0m CREATE TABLE `mysql_widgets` (`id` int(11) auto_increment PRIMARY KEY, `binary` blob, `boolean` tinyint(1), `date` date, `datetime` datetime, `decimal` decimal, `float` float, `integer` int(11), `references_id` int(11), `string` varchar(255), `text` text, `time` time, `timestamp` datetime, `hstore` text, `json` text, `array` text, `cidr_address` text, `ip_address` text, `mac_address` text, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
|
43
|
+
[1m[36m (17.2ms)[0m [1mCREATE INDEX `index_mysql_widgets_on_references_id` ON `mysql_widgets` (`references_id`) [0m
|
44
|
+
[1m[35m (2.8ms)[0m BEGIN
|
45
|
+
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20141208210433')[0m
|
46
|
+
[1m[35m (3.8ms)[0m COMMIT
|
47
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
48
|
+
[1m[36mActiveRecord::SchemaMigration Load (3.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
49
|
+
[1m[35mActiveRecord::SchemaMigration Load (2.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
50
|
+
[1m[36m (10.5ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
51
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
52
|
+
[1m[36m (13.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
53
|
+
[1m[35m (2.6ms)[0m SELECT version FROM "schema_migrations"
|
54
|
+
[1m[36m (14.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
55
|
+
[1m[35m (11.3ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
56
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
57
|
+
[1m[35m (10.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
58
|
+
[1m[36m (6.6ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
59
|
+
[1m[35m (13.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('0')
|
60
|
+
[1m[36mActiveRecord::SchemaMigration Load (3.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
61
|
+
[1m[36mActiveRecord::SchemaMigration Load (2.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
62
|
+
Migrating to CreateMysqlWidgets (20141208210433)
|
63
|
+
DEPRECATION WARNING: Passing a string to ActiveRecord::Base.establish_connection for a configuration lookup is deprecated, please pass a symbol (:mysql_development) instead. (called from <top (required)> at /vagrant/mass_record/test/dummy/db/migrate/20141208210433_create_mysql_widgets.rb:1)
|
64
|
+
[1m[35m (1.3ms)[0m CREATE TABLE `mysql_widgets` (`id` int(11) auto_increment PRIMARY KEY, `binary` blob, `boolean` tinyint(1), `date` date, `datetime` datetime, `decimal` decimal, `float` float, `integer` int(11), `references_id` int(11), `string` varchar(255), `text` text, `time` time, `timestamp` datetime, `hstore` text, `json` text, `array` text, `cidr_address` text, `ip_address` text, `mac_address` text, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
|
65
|
+
Mysql2::Error: Table 'mysql_widgets' already exists: CREATE TABLE `mysql_widgets` (`id` int(11) auto_increment PRIMARY KEY, `binary` blob, `boolean` tinyint(1), `date` date, `datetime` datetime, `decimal` decimal, `float` float, `integer` int(11), `references_id` int(11), `string` varchar(255), `text` text, `time` time, `timestamp` datetime, `hstore` text, `json` text, `array` text, `cidr_address` text, `ip_address` text, `mac_address` text, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
|
66
|
+
[1m[36mActiveRecord::SchemaMigration Load (4.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
67
|
+
[1m[35mActiveRecord::SchemaMigration Load (2.9ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
68
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
69
|
+
[1m[35mActiveRecord::SchemaMigration Load (2.0ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
70
|
+
[1m[36mActiveRecord::SchemaMigration Load (3.0ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
71
|
+
Migrating to CreateMysqlWidgets (20141208210433)
|
72
|
+
DEPRECATION WARNING: Passing a string to ActiveRecord::Base.establish_connection for a configuration lookup is deprecated, please pass a symbol (:mysql_development) instead. (called from <top (required)> at /vagrant/mass_record/test/dummy/db/migrate/20141208210433_create_mysql_widgets.rb:1)
|
73
|
+
[1m[35m (0.8ms)[0m CREATE TABLE `mysql_widgets` (`id` int(11) auto_increment PRIMARY KEY, `binary` blob, `boolean` tinyint(1), `date` date, `datetime` datetime, `decimal` decimal, `float` float, `integer` int(11), `references_id` int(11), `string` varchar(255), `text` text, `time` time, `timestamp` datetime, `hstore` text, `json` text, `array` text, `cidr_address` text, `ip_address` text, `mac_address` text, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
|
74
|
+
Mysql2::Error: Table 'mysql_widgets' already exists: CREATE TABLE `mysql_widgets` (`id` int(11) auto_increment PRIMARY KEY, `binary` blob, `boolean` tinyint(1), `date` date, `datetime` datetime, `decimal` decimal, `float` float, `integer` int(11), `references_id` int(11), `string` varchar(255), `text` text, `time` time, `timestamp` datetime, `hstore` text, `json` text, `array` text, `cidr_address` text, `ip_address` text, `mac_address` text, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
|
75
|
+
[1m[36mActiveRecord::SchemaMigration Load (3.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
76
|
+
Migrating to CreateMysqlWidgets (20141208210433)
|
77
|
+
[1m[35m (1.1ms)[0m CREATE TABLE `mysql_widgets` (`id` int(11) auto_increment PRIMARY KEY, `binary` blob, `boolean` tinyint(1), `date` date, `datetime` datetime, `decimal` decimal, `float` float, `integer` int(11), `references_id` int(11), `string` varchar(255), `text` text, `time` time, `timestamp` datetime, `hstore` text, `json` text, `array` text, `cidr_address` text, `ip_address` text, `mac_address` text, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
|
78
|
+
Mysql2::Error: Table 'mysql_widgets' already exists: CREATE TABLE `mysql_widgets` (`id` int(11) auto_increment PRIMARY KEY, `binary` blob, `boolean` tinyint(1), `date` date, `datetime` datetime, `decimal` decimal, `float` float, `integer` int(11), `references_id` int(11), `string` varchar(255), `text` text, `time` time, `timestamp` datetime, `hstore` text, `json` text, `array` text, `cidr_address` text, `ip_address` text, `mac_address` text, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
|
79
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
80
|
+
Migrating to CreateMysqlWidgets (20141208210433)
|
81
|
+
[1m[35m (7.0ms)[0m CREATE TABLE `mysql_widgets` (`id` int(11) auto_increment PRIMARY KEY, `binary` blob, `boolean` tinyint(1), `date` date, `datetime` datetime, `decimal` decimal, `float` float, `integer` int(11), `references_id` int(11), `string` varchar(255), `text` text, `time` time, `timestamp` datetime, `hstore` text, `json` text, `array` text, `cidr_address` text, `ip_address` text, `mac_address` text, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
|
82
|
+
[1m[36m (25.2ms)[0m [1mCREATE INDEX `index_mysql_widgets_on_references_id` ON `mysql_widgets` (`references_id`) [0m
|
83
|
+
[1m[35m (0.7ms)[0m BEGIN
|
84
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20141208210433')[0m
|
85
|
+
Mysql2::Error: Duplicate entry '20141208210433' for key 'unique_schema_migrations': INSERT INTO `schema_migrations` (`version`) VALUES ('20141208210433')
|
86
|
+
[1m[35m (8.6ms)[0m ROLLBACK
|
87
|
+
[1m[36m (1.3ms)[0m [1mSELECT COUNT(*) FROM `mysql_widgets`[0m
|
88
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.9ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
89
|
+
Migrating to CreateMysqlWidgets (20141208210433)
|
90
|
+
[1m[35m (1.0ms)[0m CREATE TABLE `mysql_widgets` (`id` int(11) auto_increment PRIMARY KEY, `binary` blob, `boolean` tinyint(1), `date` date, `datetime` datetime, `decimal` decimal, `float` float, `integer` int(11), `references_id` int(11), `string` varchar(255), `text` text, `time` time, `timestamp` datetime, `hstore` text, `json` text, `array` text, `cidr_address` text, `ip_address` text, `mac_address` text, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
|
91
|
+
Mysql2::Error: Table 'mysql_widgets' already exists: CREATE TABLE `mysql_widgets` (`id` int(11) auto_increment PRIMARY KEY, `binary` blob, `boolean` tinyint(1), `date` date, `datetime` datetime, `decimal` decimal, `float` float, `integer` int(11), `references_id` int(11), `string` varchar(255), `text` text, `time` time, `timestamp` datetime, `hstore` text, `json` text, `array` text, `cidr_address` text, `ip_address` text, `mac_address` text, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
|
92
|
+
[1m[36mActiveRecord::SchemaMigration Load (2.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
93
|
+
Migrating to CreateMysqlWidgets (20141208210444)
|
94
|
+
[1m[35m (8.3ms)[0m CREATE TABLE `mysql_widgets` (`id` int(11) auto_increment PRIMARY KEY, `binary` blob, `boolean` tinyint(1), `date` date, `datetime` datetime, `decimal` decimal, `float` float, `integer` int(11), `references_id` int(11), `string` varchar(255), `text` text, `time` time, `timestamp` datetime, `hstore` text, `json` text, `array` text, `cidr_address` text, `ip_address` text, `mac_address` text, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
|
95
|
+
[1m[36m (20.3ms)[0m [1mCREATE INDEX `index_mysql_widgets_on_references_id` ON `mysql_widgets` (`references_id`) [0m
|
96
|
+
[1m[35m (0.7ms)[0m BEGIN
|
97
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20141208210444')[0m
|
98
|
+
[1m[35m (3.1ms)[0m COMMIT
|
99
|
+
Migrating to CreateSqliteWidgets (20141208214906)
|
100
|
+
[1m[36m (3.3ms)[0m [1mbegin transaction[0m
|
101
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "sqlite_widgets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "binary" blob, "boolean" boolean, "date" date, "datetime" datetime, "decimal" decimal, "float" float, "integer" integer, "references_id" integer, "string" varchar(255), "text" text, "time" time, "timestamp" datetime, "hstore" text, "json" text, "array" text, "cidr_address" text, "ip_address" text, "mac_address" text, "created_at" datetime, "updated_at" datetime)
|
102
|
+
SQLite3::SQLException: object name reserved for internal use: sqlite_widgets: CREATE TABLE "sqlite_widgets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "binary" blob, "boolean" boolean, "date" date, "datetime" datetime, "decimal" decimal, "float" float, "integer" integer, "references_id" integer, "string" varchar(255), "text" text, "time" time, "timestamp" datetime, "hstore" text, "json" text, "array" text, "cidr_address" text, "ip_address" text, "mac_address" text, "created_at" datetime, "updated_at" datetime)
|
103
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
104
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
105
|
+
Migrating to CreateMysqlWidgets (20141208210444)
|
106
|
+
[1m[35m (1.2ms)[0m CREATE TABLE `mysql_widgets` (`id` int(11) auto_increment PRIMARY KEY, `binary` blob, `boolean` tinyint(1), `date` date, `datetime` datetime, `decimal` decimal, `float` float, `integer` int(11), `references_id` int(11), `string` varchar(255), `text` text, `time` time, `timestamp` datetime, `hstore` text, `json` text, `array` text, `cidr_address` text, `ip_address` text, `mac_address` text, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
|
107
|
+
Mysql2::Error: Table 'mysql_widgets' already exists: CREATE TABLE `mysql_widgets` (`id` int(11) auto_increment PRIMARY KEY, `binary` blob, `boolean` tinyint(1), `date` date, `datetime` datetime, `decimal` decimal, `float` float, `integer` int(11), `references_id` int(11), `string` varchar(255), `text` text, `time` time, `timestamp` datetime, `hstore` text, `json` text, `array` text, `cidr_address` text, `ip_address` text, `mac_address` text, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
|
108
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
109
|
+
Migrating to CreateMysqlWidgets (20141208210434)
|
110
|
+
[1m[35m (11.2ms)[0m CREATE TABLE `mysql_widgets` (`id` int(11) auto_increment PRIMARY KEY, `binary` blob, `boolean` tinyint(1), `date` date, `datetime` datetime, `decimal` decimal, `float` float, `integer` int(11), `references_id` int(11), `string` varchar(255), `text` text, `time` time, `timestamp` datetime, `hstore` text, `json` text, `array` text, `cidr_address` text, `ip_address` text, `mac_address` text, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
|
111
|
+
[1m[36m (32.3ms)[0m [1mCREATE INDEX `index_mysql_widgets_on_references_id` ON `mysql_widgets` (`references_id`) [0m
|
112
|
+
[1m[35m (1.3ms)[0m BEGIN
|
113
|
+
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20141208210434')[0m
|
114
|
+
[1m[35m (4.4ms)[0m COMMIT
|
115
|
+
Migrating to CreateWidgets (20141208221412)
|
116
|
+
[1m[36m (4.1ms)[0m [1mbegin transaction[0m
|
117
|
+
[1m[35m (10.4ms)[0m CREATE TABLE "widgets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "binary" blob, "boolean" boolean, "date" date, "datetime" datetime, "decimal" decimal, "float" float, "integer" integer, "references_id" integer, "string" varchar(255), "text" text, "time" time, "timestamp" datetime, "hstore" text, "json" text, "array" text, "cidr_address" text, "ip_address" text, "mac_address" text, "created_at" datetime, "updated_at" datetime)
|
118
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
119
|
+
[1m[35m (0.2ms)[0m CREATE INDEX "index_widgets_on_references_id" ON "widgets" ("references_id")
|
120
|
+
[1m[36mSQL (2.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141208221412"]]
|
121
|
+
[1m[35m (20.0ms)[0m commit transaction
|
122
|
+
[1m[36mActiveRecord::SchemaMigration Load (3.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
123
|
+
[1m[35m (3.2ms)[0m SELECT sql
|
124
|
+
FROM sqlite_master
|
125
|
+
WHERE name='index_widgets_on_references_id' AND type='index'
|
126
|
+
UNION ALL
|
127
|
+
SELECT sql
|
128
|
+
FROM sqlite_temp_master
|
129
|
+
WHERE name='index_widgets_on_references_id' AND type='index'
|
130
|
+
|
131
|
+
[1m[36m (2.8ms)[0m [1mSELECT COUNT(*) FROM "widgets"[0m
|
132
|
+
[1m[35m (1.0ms)[0m SELECT COUNT(*) FROM `mysql_widgets`
|
133
|
+
[1m[36m (3.6ms)[0m [1mSELECT COUNT(*) FROM "widgets"[0m
|
134
|
+
[1m[35m (0.8ms)[0m SELECT COUNT(*) FROM `mysql_widgets`
|
135
|
+
[1m[36mActiveRecord::SchemaMigration Load (3.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
136
|
+
Migrating to CreateMysqlWidgets (20141208210434)
|
137
|
+
[1m[35m (1.3ms)[0m CREATE TABLE `mysql_widgets` (`id` int(11) auto_increment PRIMARY KEY, `binary` blob, `boolean` tinyint(1), `date` date, `datetime` datetime, `decimal` decimal, `float` float, `integer` int(11), `references_id` int(11), `string` varchar(255), `text` text, `time` time, `timestamp` datetime, `hstore` text, `json` text, `array` text, `cidr_address` text, `ip_address` text, `mac_address` text, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
|
138
|
+
Mysql2::Error: Table 'mysql_widgets' already exists: CREATE TABLE `mysql_widgets` (`id` int(11) auto_increment PRIMARY KEY, `binary` blob, `boolean` tinyint(1), `date` date, `datetime` datetime, `decimal` decimal, `float` float, `integer` int(11), `references_id` int(11), `string` varchar(255), `text` text, `time` time, `timestamp` datetime, `hstore` text, `json` text, `array` text, `cidr_address` text, `ip_address` text, `mac_address` text, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
|
139
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.9ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
140
|
+
Migrating to CreateSqlServerWidgets (20141208225325)
|
141
|
+
[1m[35mSQL (0.9ms)[0m USE [engine_development]
|
142
|
+
[1m[36mSQL (3.4ms)[0m [1mBEGIN TRANSACTION[0m
|
143
|
+
[1m[35m (3.2ms)[0m CREATE TABLE [sql_server_widgets] ([id] int NOT NULL IDENTITY(1,1) PRIMARY KEY, [binary] varbinary(max), [boolean] bit, [date] date, [datetime] datetime, [decimal] decimal, [float] float(8), [integer] integer, [references_id] integer, [string] nvarchar(255), [text] nvarchar(max), [time] time, [timestamp] datetime, [hstore] nvarchar(max), [json] nvarchar(max), [array] nvarchar(max), [cidr_address] nvarchar(max), [ip_address] nvarchar(max), [mac_address] nvarchar(max), [created_at] datetime, [updated_at] datetime)
|
144
|
+
[1m[36m (20.4ms)[0m [1mEXEC sp_executesql N'EXEC sp_helpindex N''sql_server_widgets'''[0m
|
145
|
+
[1m[35m (1.5ms)[0m CREATE INDEX [index_sql_server_widgets_on_references_id] ON [sql_server_widgets] ([references_id])
|
146
|
+
[1m[36mSQL (5.6ms)[0m [1mIF @@TRANCOUNT > 0 ROLLBACK TRANSACTION[0m
|
147
|
+
[1m[36mActiveRecord::SchemaMigration Load (2.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
148
|
+
Migrating to CreateSqlServerWidgets (20141208225325)
|
149
|
+
[1m[35mSQL (0.7ms)[0m USE [engine_development]
|
150
|
+
[1m[36mSQL (2.7ms)[0m [1mBEGIN TRANSACTION[0m
|
151
|
+
[1m[35m (3.8ms)[0m CREATE TABLE [sql_server_widgets] ([id] int NOT NULL IDENTITY(1,1) PRIMARY KEY, [binary] varbinary(max), [boolean] bit, [date] date, [datetime] datetime, [decimal] decimal, [float] float(8), [integer] integer, [references_id] integer, [string] nvarchar(255), [text] nvarchar(max), [time] time, [timestamp] datetime, [hstore] nvarchar(max), [json] nvarchar(max), [array] nvarchar(max), [cidr_address] nvarchar(max), [ip_address] nvarchar(max), [mac_address] nvarchar(max), [created_at] datetime, [updated_at] datetime)
|
152
|
+
[1m[36m (2.4ms)[0m [1mEXEC sp_executesql N'EXEC sp_helpindex N''sql_server_widgets'''[0m
|
153
|
+
[1m[35m (1.3ms)[0m CREATE INDEX [index_sql_server_widgets_on_references_id] ON [sql_server_widgets] ([references_id])
|
154
|
+
[1m[36mSQL (4.4ms)[0m [1mIF @@TRANCOUNT > 0 ROLLBACK TRANSACTION[0m
|
155
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.9ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
156
|
+
Migrating to CreateSqlServerWidgets (20141208225325)
|
157
|
+
[1m[35mSQL (0.7ms)[0m USE [engine_development]
|
158
|
+
[1m[36mSQL (0.6ms)[0m [1mBEGIN TRANSACTION[0m
|
159
|
+
[1m[35m (2.9ms)[0m CREATE TABLE [sql_server_widgets] ([id] int NOT NULL IDENTITY(1,1) PRIMARY KEY, [binary] varbinary(max), [boolean] bit, [date] date, [datetime] datetime, [decimal] decimal, [float] float(8), [integer] integer, [references_id] integer, [string] nvarchar(255), [text] nvarchar(max), [time] time, [timestamp] datetime, [hstore] nvarchar(max), [json] nvarchar(max), [array] nvarchar(max), [cidr_address] nvarchar(max), [ip_address] nvarchar(max), [mac_address] nvarchar(max), [created_at] datetime, [updated_at] datetime)
|
160
|
+
[1m[36m (2.7ms)[0m [1mEXEC sp_executesql N'EXEC sp_helpindex N''sql_server_widgets'''[0m
|
161
|
+
[1m[35m (1.4ms)[0m CREATE INDEX [index_sql_server_widgets_on_references_id] ON [sql_server_widgets] ([references_id])
|
162
|
+
[1m[36mSQL (3.6ms)[0m [1mIF @@TRANCOUNT > 0 ROLLBACK TRANSACTION[0m
|
163
|
+
[1m[36mActiveRecord::SchemaMigration Load (3.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
164
|
+
Migrating to CreateSqlServerWidgets (20141208225325)
|
165
|
+
[1m[35mSQL (0.9ms)[0m USE [engine_development]
|
166
|
+
[1m[36mSQL (0.6ms)[0m [1mBEGIN TRANSACTION[0m
|
167
|
+
[1m[35m (3.0ms)[0m CREATE TABLE [sql_server_widgets] ([id] int NOT NULL IDENTITY(1,1) PRIMARY KEY, [binary] varbinary(max), [boolean] bit, [date] date, [datetime] datetime, [decimal] decimal, [float] float(8), [integer] integer, [references_id] integer, [string] nvarchar(255), [text] nvarchar(max), [time] time, [timestamp] datetime, [hstore] nvarchar(max), [json] nvarchar(max), [array] nvarchar(max), [cidr_address] nvarchar(max), [ip_address] nvarchar(max), [mac_address] nvarchar(max), [created_at] datetime, [updated_at] datetime)
|
168
|
+
[1m[36m (2.7ms)[0m [1mEXEC sp_executesql N'EXEC sp_helpindex N''sql_server_widgets'''[0m
|
169
|
+
[1m[35m (1.6ms)[0m CREATE INDEX [index_sql_server_widgets_on_references_id] ON [sql_server_widgets] ([references_id])
|
170
|
+
[1m[36mSQL (3.0ms)[0m [1mIF @@TRANCOUNT > 0 ROLLBACK TRANSACTION[0m
|
171
|
+
[1m[36mSQL (0.8ms)[0m [1mUSE [engine_development][0m
|
172
|
+
[1m[35mActiveRecord::SchemaMigration Load (1.2ms)[0m EXEC sp_executesql N'SELECT [schema_migrations].* FROM [schema_migrations]'
|
173
|
+
Migrating to CreateSqlServerWidgets (20141208225325)
|
174
|
+
[1m[36mSQL (0.7ms)[0m [1mUSE [engine_development][0m
|
175
|
+
[1m[35mActiveRecord::SchemaMigration Load (1.7ms)[0m EXEC sp_executesql N'SELECT [schema_migrations].* FROM [schema_migrations]'
|
176
|
+
Migrating to CreateSqlServerWidgets (20141208225325)
|
177
|
+
[1m[36mSQL (0.7ms)[0m [1mUSE [engine_development][0m
|
178
|
+
[1m[35mActiveRecord::SchemaMigration Load (1.0ms)[0m EXEC sp_executesql N'SELECT [schema_migrations].* FROM [schema_migrations]'
|
179
|
+
Migrating to CreateSqlServerWidgets (20141208225325)
|
180
|
+
[1m[36mSQL (0.8ms)[0m [1mUSE [engine_development][0m
|
181
|
+
[1m[35mSQL (0.7ms)[0m BEGIN TRANSACTION
|
182
|
+
[1m[36m (3.2ms)[0m [1mCREATE TABLE [sql_server_widgets] ([id] int NOT NULL IDENTITY(1,1) PRIMARY KEY, [binary] varbinary(max), [boolean] bit, [date] date, [datetime] datetime, [decimal] decimal, [float] float(8), [integer] integer, [references_id] integer, [string] nvarchar(255), [text] nvarchar(max), [time] time, [timestamp] datetime, [hstore] nvarchar(max), [json] nvarchar(max), [array] nvarchar(max), [cidr_address] nvarchar(max), [ip_address] nvarchar(max), [mac_address] nvarchar(max), [created_at] datetime, [updated_at] datetime) [0m
|
183
|
+
[1m[35m (3.2ms)[0m EXEC sp_executesql N'EXEC sp_helpindex N''sql_server_widgets'''
|
184
|
+
[1m[36m (5.3ms)[0m [1mCREATE INDEX [index_sql_server_widgets_on_references_id] ON [sql_server_widgets] ([references_id])[0m
|
185
|
+
[1m[35mSQL (3.7ms)[0m EXEC sp_executesql N'INSERT INTO [schema_migrations] ([version]) VALUES (@0); SELECT CAST(SCOPE_IDENTITY() AS bigint) AS Ident', N'@0 nvarchar(255)', @0 = N'20141208225325' [["version", "20141208225325"]]
|
186
|
+
[1m[36mSQL (4.5ms)[0m [1mCOMMIT TRANSACTION[0m
|
187
|
+
[1m[35mActiveRecord::SchemaMigration Load (1.1ms)[0m EXEC sp_executesql N'SELECT [schema_migrations].* FROM [schema_migrations]'
|
188
|
+
[1m[36m (19.6ms)[0m [1mEXEC sp_executesql N'EXEC sp_helpindex N''sql_server_widgets'''[0m
|
189
|
+
[1m[36m (2.7ms)[0m [1mSELECT COUNT(*) FROM "widgets"[0m
|
190
|
+
[1m[35m (0.9ms)[0m SELECT COUNT(*) FROM `mysql_widgets`
|
191
|
+
[1m[36mSQL (0.7ms)[0m [1mUSE [engine_development][0m
|
192
|
+
[1m[35m (1.4ms)[0m EXEC sp_executesql N'SELECT COUNT(*) FROM [sql_server_widgets]'
|
193
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
194
|
+
[1m[35mSQL (13.1ms)[0m INSERT INTO "widgets" ("binary", "created_at", "updated_at") VALUES (?, ?, ?) [["binary", "<46418 bytes of binary data>"], ["created_at", "2014-12-09 16:02:26.940083"], ["updated_at", "2014-12-09 16:02:26.940083"]]
|
195
|
+
[1m[36m (31.0ms)[0m [1mcommit transaction[0m
|
196
|
+
[1m[35m (3.4ms)[0m SELECT COUNT(*) FROM "widgets"
|
197
|
+
[1m[36mWidget Load (3.9ms)[0m [1mSELECT "widgets".* FROM "widgets" ORDER BY "widgets"."id" ASC LIMIT 1[0m
|