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.
Files changed (65) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mass_record.rb +2 -2
  3. data/lib/mass_record/version.rb +1 -1
  4. data/test/dummy/app/assets/javascripts/mysql_widgets.js +2 -0
  5. data/test/dummy/app/assets/javascripts/sql_server_widgets.js +2 -0
  6. data/test/dummy/app/assets/javascripts/widgets.js +2 -0
  7. data/test/dummy/app/assets/stylesheets/mysql_widgets.css +4 -0
  8. data/test/dummy/app/assets/stylesheets/scaffold.css +56 -0
  9. data/test/dummy/app/assets/stylesheets/sql_server_widgets.css +4 -0
  10. data/test/dummy/app/assets/stylesheets/widgets.css +4 -0
  11. data/test/dummy/app/controllers/mysql_widgets_controller.rb +58 -0
  12. data/test/dummy/app/controllers/sql_server_widgets_controller.rb +58 -0
  13. data/test/dummy/app/controllers/widgets_controller.rb +58 -0
  14. data/test/dummy/app/helpers/mysql_widgets_helper.rb +2 -0
  15. data/test/dummy/app/helpers/sql_server_widgets_helper.rb +2 -0
  16. data/test/dummy/app/helpers/widgets_helper.rb +2 -0
  17. data/test/dummy/app/models/mysql_widget.rb +4 -0
  18. data/test/dummy/app/models/sql_server_widget.rb +4 -0
  19. data/test/dummy/app/models/widget.rb +4 -0
  20. data/test/dummy/app/views/mysql_widgets/_form.html.erb +89 -0
  21. data/test/dummy/app/views/mysql_widgets/edit.html.erb +6 -0
  22. data/test/dummy/app/views/mysql_widgets/index.html.erb +59 -0
  23. data/test/dummy/app/views/mysql_widgets/new.html.erb +5 -0
  24. data/test/dummy/app/views/mysql_widgets/show.html.erb +94 -0
  25. data/test/dummy/app/views/sql_server_widgets/_form.html.erb +89 -0
  26. data/test/dummy/app/views/sql_server_widgets/edit.html.erb +6 -0
  27. data/test/dummy/app/views/sql_server_widgets/index.html.erb +59 -0
  28. data/test/dummy/app/views/sql_server_widgets/new.html.erb +5 -0
  29. data/test/dummy/app/views/sql_server_widgets/show.html.erb +94 -0
  30. data/test/dummy/app/views/widgets/_form.html.erb +89 -0
  31. data/test/dummy/app/views/widgets/edit.html.erb +6 -0
  32. data/test/dummy/app/views/widgets/index.html.erb +59 -0
  33. data/test/dummy/app/views/widgets/new.html.erb +5 -0
  34. data/test/dummy/app/views/widgets/show.html.erb +94 -0
  35. data/test/dummy/config/database.yml +46 -1
  36. data/test/dummy/config/routes.rb +6 -0
  37. data/test/dummy/db/development +0 -0
  38. data/test/dummy/db/development.sqlite3 +0 -0
  39. data/test/dummy/db/migrate/20141208210434_create_mysql_widgets.rb +27 -0
  40. data/test/dummy/db/migrate/20141208221412_create_widgets.rb +27 -0
  41. data/test/dummy/db/migrate/20141208225325_create_sql_server_widgets.rb.ignore +27 -0
  42. data/test/dummy/db/production.sqlite3 +0 -0
  43. data/test/dummy/db/schema.rb +41 -0
  44. data/test/dummy/db/test.sqlite3 +0 -0
  45. data/test/dummy/log/development.log +197 -0
  46. data/test/dummy/log/mysql_development.log +13 -0
  47. data/test/dummy/log/mysql_test.log +7 -0
  48. data/test/dummy/log/sql_server_development.log +9 -0
  49. data/test/dummy/log/test.log +51 -0
  50. data/test/dummy/test/controllers/mysql_widgets_controller_test.rb +49 -0
  51. data/test/dummy/test/controllers/sql_server_widgets_controller_test.rb +49 -0
  52. data/test/dummy/test/controllers/widgets_controller_test.rb +49 -0
  53. data/test/dummy/test/fixtures/mysql_widgets.yml +41 -0
  54. data/test/dummy/test/fixtures/sql_server_widgets.yml +41 -0
  55. data/test/dummy/test/fixtures/widgets.yml +41 -0
  56. data/test/dummy/test/helpers/mysql_widgets_helper_test.rb +4 -0
  57. data/test/dummy/test/helpers/sql_server_widgets_helper_test.rb +4 -0
  58. data/test/dummy/test/helpers/widgets_helper_test.rb +33 -0
  59. data/test/dummy/test/models/mysql_widget_test.rb +7 -0
  60. data/test/dummy/test/models/sql_server_widget_test.rb +7 -0
  61. data/test/dummy/test/models/widget_test.rb +7 -0
  62. data/test/dummy/tmp/sample.jpg +0 -0
  63. data/test/dummy/tmp/sample2.jpg +0 -0
  64. data/test/dummy/tmp/sample3.jpg +0 -0
  65. metadata +176 -2
@@ -0,0 +1,6 @@
1
+ <h1>Editing widget</h1>
2
+
3
+ <%= render 'form' %>
4
+
5
+ <%= link_to 'Show', @widget %> |
6
+ <%= link_to 'Back', widgets_path %>
@@ -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,5 @@
1
+ <h1>New widget</h1>
2
+
3
+ <%= render 'form' %>
4
+
5
+ <%= link_to 'Back', widgets_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
+
@@ -1,4 +1,10 @@
1
1
  Rails.application.routes.draw do
2
2
 
3
+ resources :sql_server_widgets
4
+
5
+ resources :widgets
6
+
7
+ resources :mysql_widgets
8
+
3
9
  mount MassRecord::Engine => "/mass_record"
4
10
  end
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
+  (8.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
2
+  (0.2ms) select sqlite_version(*)
3
+  (10.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4
+ ActiveRecord::SchemaMigration Load (2.9ms) SELECT "schema_migrations".* FROM "schema_migrations"
5
+ Migrating to CreateWidgets (20141205225041)
6
+ ActiveRecord::SchemaMigration Load (2.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
7
+ Migrating to CreateMysqlWidgets (20141208204017)
8
+ ActiveRecord::SchemaMigration Load (2.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
9
+ Migrating to CreateMysqlWidgets (20141208204507)
10
+  (0.1ms) 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
+ ActiveRecord::SchemaMigration Load (2.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
13
+ Migrating to CreateMysqlWidgets (20141208204507)
14
+  (0.1ms) 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
+ ActiveRecord::SchemaMigration Load (1.8ms) SELECT "schema_migrations".* FROM "schema_migrations"
17
+ Migrating to CreateMysqlWidgets (20141208204507)
18
+  (0.1ms) 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
+ ActiveRecord::SchemaMigration Load (3.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
22
+ Migrating to CreateMysqlWidgets (20141208204507)
23
+  (0.1ms) 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
+ ActiveRecord::SchemaMigration Load (2.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
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
+ ActiveRecord::SchemaMigration Load (1.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
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
+ ActiveRecord::SchemaMigration Load (1.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
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
+  (97.5ms) 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
+  (33.0ms) CREATE INDEX `index_mysql_widgets_on_references_id` ON `mysql_widgets` (`references_id`) 
36
+ Mysql2::Error: Table 'engine_development.schema_migrations' doesn't exist: SHOW FULL FIELDS FROM `schema_migrations`
37
+ ActiveRecord::SchemaMigration Load (3.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
38
+ ActiveRecord::SchemaMigration Load (2.8ms) SELECT "schema_migrations".* FROM "schema_migrations"
39
+ ActiveRecord::SchemaMigration Load (1.8ms) SELECT "schema_migrations".* FROM "schema_migrations"
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
+  (11.6ms) 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
+  (17.2ms) CREATE INDEX `index_mysql_widgets_on_references_id` ON `mysql_widgets` (`references_id`) 
44
+  (2.8ms) BEGIN
45
+ SQL (1.2ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20141208210433')
46
+  (3.8ms) COMMIT
47
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT `schema_migrations`.* FROM `schema_migrations`
48
+ ActiveRecord::SchemaMigration Load (3.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
49
+ ActiveRecord::SchemaMigration Load (2.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
50
+  (10.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
51
+  (0.2ms) select sqlite_version(*)
52
+  (13.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
53
+  (2.6ms) SELECT version FROM "schema_migrations"
54
+  (14.9ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
55
+  (11.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
56
+  (0.1ms) select sqlite_version(*)
57
+  (10.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
58
+  (6.6ms) SELECT version FROM "schema_migrations"
59
+  (13.7ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
60
+ ActiveRecord::SchemaMigration Load (3.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
61
+ ActiveRecord::SchemaMigration Load (2.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
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
+  (1.3ms) 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
+ ActiveRecord::SchemaMigration Load (4.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
67
+ ActiveRecord::SchemaMigration Load (2.9ms) SELECT "schema_migrations".* FROM "schema_migrations"
68
+ ActiveRecord::SchemaMigration Load (1.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
69
+ ActiveRecord::SchemaMigration Load (2.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
70
+ ActiveRecord::SchemaMigration Load (3.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
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
+  (0.8ms) 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
+ ActiveRecord::SchemaMigration Load (3.8ms) SELECT "schema_migrations".* FROM "schema_migrations"
76
+ Migrating to CreateMysqlWidgets (20141208210433)
77
+  (1.1ms) 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
+ ActiveRecord::SchemaMigration Load (1.8ms) SELECT "schema_migrations".* FROM "schema_migrations"
80
+ Migrating to CreateMysqlWidgets (20141208210433)
81
+  (7.0ms) 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
+  (25.2ms) CREATE INDEX `index_mysql_widgets_on_references_id` ON `mysql_widgets` (`references_id`) 
83
+  (0.7ms) BEGIN
84
+ SQL (1.0ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20141208210433')
85
+ Mysql2::Error: Duplicate entry '20141208210433' for key 'unique_schema_migrations': INSERT INTO `schema_migrations` (`version`) VALUES ('20141208210433')
86
+  (8.6ms) ROLLBACK
87
+  (1.3ms) SELECT COUNT(*) FROM `mysql_widgets`
88
+ ActiveRecord::SchemaMigration Load (1.9ms) SELECT "schema_migrations".* FROM "schema_migrations"
89
+ Migrating to CreateMysqlWidgets (20141208210433)
90
+  (1.0ms) 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
+ ActiveRecord::SchemaMigration Load (2.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
93
+ Migrating to CreateMysqlWidgets (20141208210444)
94
+  (8.3ms) 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
+  (20.3ms) CREATE INDEX `index_mysql_widgets_on_references_id` ON `mysql_widgets` (`references_id`) 
96
+  (0.7ms) BEGIN
97
+ SQL (0.9ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20141208210444')
98
+  (3.1ms) COMMIT
99
+ Migrating to CreateSqliteWidgets (20141208214906)
100
+  (3.3ms) begin transaction
101
+  (0.3ms) 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
+  (0.1ms) rollback transaction
104
+ ActiveRecord::SchemaMigration Load (1.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
105
+ Migrating to CreateMysqlWidgets (20141208210444)
106
+  (1.2ms) 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
+ ActiveRecord::SchemaMigration Load (1.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
109
+ Migrating to CreateMysqlWidgets (20141208210434)
110
+  (11.2ms) 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
+  (32.3ms) CREATE INDEX `index_mysql_widgets_on_references_id` ON `mysql_widgets` (`references_id`) 
112
+  (1.3ms) BEGIN
113
+ SQL (1.1ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20141208210434')
114
+  (4.4ms) COMMIT
115
+ Migrating to CreateWidgets (20141208221412)
116
+  (4.1ms) begin transaction
117
+  (10.4ms) 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
+  (0.1ms) select sqlite_version(*)
119
+  (0.2ms) CREATE INDEX "index_widgets_on_references_id" ON "widgets" ("references_id")
120
+ SQL (2.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141208221412"]]
121
+  (20.0ms) commit transaction
122
+ ActiveRecord::SchemaMigration Load (3.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
123
+  (3.2ms) 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
+  (2.8ms) SELECT COUNT(*) FROM "widgets"
132
+  (1.0ms) SELECT COUNT(*) FROM `mysql_widgets`
133
+  (3.6ms) SELECT COUNT(*) FROM "widgets"
134
+  (0.8ms) SELECT COUNT(*) FROM `mysql_widgets`
135
+ ActiveRecord::SchemaMigration Load (3.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
136
+ Migrating to CreateMysqlWidgets (20141208210434)
137
+  (1.3ms) 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
+ ActiveRecord::SchemaMigration Load (1.9ms) SELECT "schema_migrations".* FROM "schema_migrations"
140
+ Migrating to CreateSqlServerWidgets (20141208225325)
141
+ SQL (0.9ms) USE [engine_development]
142
+ SQL (3.4ms) BEGIN TRANSACTION
143
+  (3.2ms) 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
+  (20.4ms) EXEC sp_executesql N'EXEC sp_helpindex N''sql_server_widgets'''
145
+  (1.5ms) CREATE INDEX [index_sql_server_widgets_on_references_id] ON [sql_server_widgets] ([references_id])
146
+ SQL (5.6ms) IF @@TRANCOUNT > 0 ROLLBACK TRANSACTION
147
+ ActiveRecord::SchemaMigration Load (2.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
148
+ Migrating to CreateSqlServerWidgets (20141208225325)
149
+ SQL (0.7ms) USE [engine_development]
150
+ SQL (2.7ms) BEGIN TRANSACTION
151
+  (3.8ms) 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
+  (2.4ms) EXEC sp_executesql N'EXEC sp_helpindex N''sql_server_widgets'''
153
+  (1.3ms) CREATE INDEX [index_sql_server_widgets_on_references_id] ON [sql_server_widgets] ([references_id])
154
+ SQL (4.4ms) IF @@TRANCOUNT > 0 ROLLBACK TRANSACTION
155
+ ActiveRecord::SchemaMigration Load (1.9ms) SELECT "schema_migrations".* FROM "schema_migrations"
156
+ Migrating to CreateSqlServerWidgets (20141208225325)
157
+ SQL (0.7ms) USE [engine_development]
158
+ SQL (0.6ms) BEGIN TRANSACTION
159
+  (2.9ms) 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
+  (2.7ms) EXEC sp_executesql N'EXEC sp_helpindex N''sql_server_widgets'''
161
+  (1.4ms) CREATE INDEX [index_sql_server_widgets_on_references_id] ON [sql_server_widgets] ([references_id])
162
+ SQL (3.6ms) IF @@TRANCOUNT > 0 ROLLBACK TRANSACTION
163
+ ActiveRecord::SchemaMigration Load (3.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
164
+ Migrating to CreateSqlServerWidgets (20141208225325)
165
+ SQL (0.9ms) USE [engine_development]
166
+ SQL (0.6ms) BEGIN TRANSACTION
167
+  (3.0ms) 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
+  (2.7ms) EXEC sp_executesql N'EXEC sp_helpindex N''sql_server_widgets'''
169
+  (1.6ms) CREATE INDEX [index_sql_server_widgets_on_references_id] ON [sql_server_widgets] ([references_id])
170
+ SQL (3.0ms) IF @@TRANCOUNT > 0 ROLLBACK TRANSACTION
171
+ SQL (0.8ms) USE [engine_development]
172
+ ActiveRecord::SchemaMigration Load (1.2ms) EXEC sp_executesql N'SELECT [schema_migrations].* FROM [schema_migrations]'
173
+ Migrating to CreateSqlServerWidgets (20141208225325)
174
+ SQL (0.7ms) USE [engine_development]
175
+ ActiveRecord::SchemaMigration Load (1.7ms) EXEC sp_executesql N'SELECT [schema_migrations].* FROM [schema_migrations]'
176
+ Migrating to CreateSqlServerWidgets (20141208225325)
177
+ SQL (0.7ms) USE [engine_development]
178
+ ActiveRecord::SchemaMigration Load (1.0ms) EXEC sp_executesql N'SELECT [schema_migrations].* FROM [schema_migrations]'
179
+ Migrating to CreateSqlServerWidgets (20141208225325)
180
+ SQL (0.8ms) USE [engine_development]
181
+ SQL (0.7ms) BEGIN TRANSACTION
182
+  (3.2ms) 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) 
183
+  (3.2ms) EXEC sp_executesql N'EXEC sp_helpindex N''sql_server_widgets'''
184
+  (5.3ms) CREATE INDEX [index_sql_server_widgets_on_references_id] ON [sql_server_widgets] ([references_id])
185
+ SQL (3.7ms) 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
+ SQL (4.5ms) COMMIT TRANSACTION
187
+ ActiveRecord::SchemaMigration Load (1.1ms) EXEC sp_executesql N'SELECT [schema_migrations].* FROM [schema_migrations]'
188
+  (19.6ms) EXEC sp_executesql N'EXEC sp_helpindex N''sql_server_widgets'''
189
+  (2.7ms) SELECT COUNT(*) FROM "widgets"
190
+  (0.9ms) SELECT COUNT(*) FROM `mysql_widgets`
191
+ SQL (0.7ms) USE [engine_development]
192
+  (1.4ms) EXEC sp_executesql N'SELECT COUNT(*) FROM [sql_server_widgets]'
193
+  (0.1ms) begin transaction
194
+ SQL (13.1ms) 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
+  (31.0ms) commit transaction
196
+  (3.4ms) SELECT COUNT(*) FROM "widgets"
197
+ Widget Load (3.9ms) SELECT "widgets".* FROM "widgets" ORDER BY "widgets"."id" ASC LIMIT 1