numeric_type_column 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -30,7 +30,8 @@ module NumericTypeColumn
30
30
  tbl.print ", :id => false"
31
31
  end
32
32
  tbl.print ", :force => true"
33
- tbl.print ", :options =>\"#{@connection.table_options(table)}\""
33
+ #TODO: Cambiar que en vez de ponerlo en :options, ponerlo en :mysql_options:
34
+ #tbl.print ", :options =>\"#{@connection.table_options(table)}\""
34
35
  tbl.puts " do |t|"
35
36
 
36
37
  # then dump all non-primary key columns
@@ -1,3 +1,3 @@
1
1
  module NumericTypeColumn
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -3,12 +3,23 @@
3
3
  # Si se ocupa cambiar algun setting de ésta base para
4
4
  # el funcionamiento en tu máquina local, hay qué crear
5
5
  # un ambiente con otro nombre nuevo:
6
- development: &db_conn
6
+ base_mysql: &base_mysql
7
7
  adapter: mysql2
8
8
  encoding: utf8
9
- database: numeric_type_column_test
10
- host: localhost
9
+ pool: 5
10
+ timeout: 5000
11
11
 
12
+ # SQLite version 3.x
13
+ # gem install sqlite3
14
+ #
15
+ # Ensure the SQLite 3 gem is defined in your Gemfile
16
+ # gem 'sqlite3'
17
+ development:
18
+ adapter: sqlite3
19
+ database: db/development.sqlite3
20
+ pool: 5
21
+ timeout: 5000
22
+
12
23
  # Warning: The database defined as "test" will be erased and
13
24
  # re-generated from your development database when you run "rake".
14
25
  # Do not set this db to the same as development or production.
@@ -18,13 +29,15 @@ test:
18
29
  pool: 5
19
30
  timeout: 5000
20
31
 
21
- # Ambiente en cms2.yapp.net
22
32
  production:
23
- <<: *db_conn
24
- host: 172.30.7.150
33
+ adapter: sqlite3
34
+ database: db/production.sqlite3
35
+ pool: 5
36
+ timeout: 5000
25
37
 
26
38
  mayhem:
27
- <<: *db_conn
39
+ <<: *base_mysql
28
40
  host: debian-wind
41
+ database: numeric_type_column_dummy
29
42
  username: u_yapp
30
43
  password: m_y4pp-
Binary file
@@ -13,7 +13,7 @@
13
13
 
14
14
  ActiveRecord::Schema.define(:version => 20121024090232) do
15
15
 
16
- create_table "join_table_tests", :id => false, :force => true, :options =>"ENGINE=InnoDB COLLATE=utf8_unicode_ci COMMENT='Pruebas de join_table (:id => false).'" do |t|
16
+ create_table "join_table_tests", :id => false, :force => true do |t|
17
17
  t.integer "object_a_id", :limit => 2, :unsigned => true, :comment => "Prueba con columna tipo References Unsigned (A)."
18
18
  t.integer "object_b_id", :limit => 2, :unsigned => true, :comment => "Prueba con columna tipo References Unsigned (B)."
19
19
  end
@@ -21,7 +21,7 @@ ActiveRecord::Schema.define(:version => 20121024090232) do
21
21
  add_index "join_table_tests", ["object_a_id"], :name => "FK_join_table_test_a"
22
22
  add_index "join_table_tests", ["object_b_id"], :name => "FK_join_table_test_b"
23
23
 
24
- create_table "unsigned_columns_tests", :force => true, :options =>"ENGINE=InnoDB COLLATE=utf8_unicode_ci COMMENT='Pruebas de unsigned columns.'" do |t|
24
+ create_table "unsigned_columns_tests", :force => true do |t|
25
25
  t.integer "integer_unsigned_column", :limit => 2, :unsigned => true, :comment => "Prueba con columna tipo Integer Unsigned."
26
26
  t.integer "integer_signed_column", :limit => 2, :comment => "Prueba con columna tipo Integer."
27
27
  t.string "string_column", :limit => 24, :comment => "Prueba con columna tipo String."
File without changes
@@ -0,0 +1,64 @@
1
+ Connecting to database specified by database.yml
2
+ Connecting to database specified by database.yml
3
+  (0.1ms) select sqlite_version(*)
4
+  (2.2ms) CREATE TABLE "join_table_tests" ("object_a_id" integer(2), "object_b_id" integer(2))
5
+  (0.1ms) PRAGMA index_list("join_table_tests")
6
+  (2.4ms) CREATE INDEX "FK_join_table_test_a" ON "join_table_tests" ("object_a_id")
7
+  (0.1ms) PRAGMA index_list("join_table_tests")
8
+  (0.0ms) PRAGMA index_info('FK_join_table_test_a')
9
+  (2.1ms) CREATE INDEX "FK_join_table_test_b" ON "join_table_tests" ("object_b_id")
10
+  (26.9ms) CREATE TABLE "unsigned_columns_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "integer_unsigned_column" integer(2), "integer_signed_column" integer(2), "string_column" varchar(24), "decimal_unsigned_column" decimal(4,2), "unsigned_float_column" float, "boolean_unsigned_column" boolean, "references_unsigned_column_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
11
+  (0.1ms) PRAGMA index_list("unsigned_columns_tests")
12
+  (2.1ms) CREATE INDEX "FK_unsigned_references_column_test" ON "unsigned_columns_tests" ("references_unsigned_column_id")
13
+  (7.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
14
+  (0.2ms) PRAGMA index_list("schema_migrations")
15
+  (2.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
16
+  (0.1ms) SELECT version FROM "schema_migrations"
17
+  (2.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20121024090232')
18
+  (2.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20121024034824')
19
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
20
+ UnsignedColumnsTest Load (0.3ms) SELECT "unsigned_columns_tests".* FROM "unsigned_columns_tests" WHERE "unsigned_columns_tests"."integer_unsigned_column" = 1 AND "unsigned_columns_tests"."integer_signed_column" = -1 AND "unsigned_columns_tests"."string_column" = 'Prueba 1' AND "unsigned_columns_tests"."decimal_unsigned_column" = 66.669 AND "unsigned_columns_tests"."unsigned_float_column" = 33.334 AND "unsigned_columns_tests"."boolean_unsigned_column" = 'f' AND "unsigned_columns_tests"."references_unsigned_column_id" = 23 LIMIT 1
21
+  (0.1ms) begin transaction
22
+ SQL (1.8ms) INSERT INTO "unsigned_columns_tests" ("boolean_unsigned_column", "created_at", "decimal_unsigned_column", "integer_signed_column", "integer_unsigned_column", "references_unsigned_column_id", "string_column", "unsigned_float_column", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["boolean_unsigned_column", false], ["created_at", Wed, 24 Oct 2012 15:11:32 UTC +00:00], ["decimal_unsigned_column", #<BigDecimal:7fadaa3e8118,'0.66669E2',18(45)>], ["integer_signed_column", -1], ["integer_unsigned_column", 1], ["references_unsigned_column_id", 23], ["string_column", "Prueba 1"], ["unsigned_float_column", 33.334], ["updated_at", Wed, 24 Oct 2012 15:11:32 UTC +00:00]]
23
+  (2.3ms) commit transaction
24
+ UnsignedColumnsTest Load (0.3ms) SELECT "unsigned_columns_tests".* FROM "unsigned_columns_tests" WHERE "unsigned_columns_tests"."integer_unsigned_column" = -1 AND "unsigned_columns_tests"."integer_signed_column" = -1 AND "unsigned_columns_tests"."string_column" = 'Prueba 2' AND "unsigned_columns_tests"."decimal_unsigned_column" = -66.669 AND "unsigned_columns_tests"."unsigned_float_column" = -33.334 AND "unsigned_columns_tests"."boolean_unsigned_column" = 'f' AND "unsigned_columns_tests"."references_unsigned_column_id" = -23 LIMIT 1
25
+  (0.0ms) begin transaction
26
+ SQL (0.6ms) INSERT INTO "unsigned_columns_tests" ("boolean_unsigned_column", "created_at", "decimal_unsigned_column", "integer_signed_column", "integer_unsigned_column", "references_unsigned_column_id", "string_column", "unsigned_float_column", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["boolean_unsigned_column", false], ["created_at", Wed, 24 Oct 2012 15:11:32 UTC +00:00], ["decimal_unsigned_column", #<BigDecimal:7fadaa11a580,'-0.66669E2',18(45)>], ["integer_signed_column", -1], ["integer_unsigned_column", -1], ["references_unsigned_column_id", -23], ["string_column", "Prueba 2"], ["unsigned_float_column", -33.334], ["updated_at", Wed, 24 Oct 2012 15:11:32 UTC +00:00]]
27
+  (5.0ms) commit transaction
28
+ Connecting to database specified by database.yml
29
+  (0.1ms) select sqlite_version(*)
30
+  (2.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
31
+  (0.0ms) PRAGMA index_list("schema_migrations")
32
+  (296.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
33
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
34
+ Migrating to CreateUnsignedColumnsTests (20121024034824)
35
+  (0.1ms) begin transaction
36
+  (0.4ms) CREATE TABLE "unsigned_columns_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "integer_unsigned_column" integer(2), "integer_signed_column" integer(2), "string_column" varchar(24), "decimal_unsigned_column" decimal(4,2), "unsigned_float_column" float, "boolean_unsigned_column" boolean, "references_unsigned_column_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) COMMENT='Pruebas de unsigned columns.'
37
+ SQLite3::SQLException: near "COMMENT": syntax error: CREATE TABLE "unsigned_columns_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "integer_unsigned_column" integer(2), "integer_signed_column" integer(2), "string_column" varchar(24), "decimal_unsigned_column" decimal(4,2), "unsigned_float_column" float, "boolean_unsigned_column" boolean, "references_unsigned_column_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) COMMENT='Pruebas de unsigned columns.'
38
+  (0.1ms) rollback transaction
39
+ Connecting to database specified by database.yml
40
+  (0.2ms) select sqlite_version(*)
41
+  (2.1ms) CREATE TABLE "join_table_tests" ("object_a_id" integer(2), "object_b_id" integer(2))
42
+  (0.0ms) PRAGMA index_list("join_table_tests")
43
+  (3.0ms) CREATE INDEX "FK_join_table_test_a" ON "join_table_tests" ("object_a_id")
44
+  (0.1ms) PRAGMA index_list("join_table_tests")
45
+  (0.0ms) PRAGMA index_info('FK_join_table_test_a')
46
+  (2.2ms) CREATE INDEX "FK_join_table_test_b" ON "join_table_tests" ("object_b_id")
47
+  (3.1ms) CREATE TABLE "unsigned_columns_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "integer_unsigned_column" integer(2), "integer_signed_column" integer(2), "string_column" varchar(24), "decimal_unsigned_column" decimal(4,2), "unsigned_float_column" float, "boolean_unsigned_column" boolean, "references_unsigned_column_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
48
+  (0.1ms) PRAGMA index_list("unsigned_columns_tests")
49
+  (2.1ms) CREATE INDEX "FK_unsigned_references_column_test" ON "unsigned_columns_tests" ("references_unsigned_column_id")
50
+  (1.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
51
+  (0.0ms) PRAGMA index_list("schema_migrations")
52
+  (2.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
53
+  (0.1ms) SELECT version FROM "schema_migrations"
54
+  (3.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20121024090232')
55
+  (2.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20121024034824')
56
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
57
+ UnsignedColumnsTest Load (0.3ms) SELECT "unsigned_columns_tests".* FROM "unsigned_columns_tests" WHERE "unsigned_columns_tests"."integer_unsigned_column" = 1 AND "unsigned_columns_tests"."integer_signed_column" = -1 AND "unsigned_columns_tests"."string_column" = 'Prueba 1' AND "unsigned_columns_tests"."decimal_unsigned_column" = 66.669 AND "unsigned_columns_tests"."unsigned_float_column" = 33.334 AND "unsigned_columns_tests"."boolean_unsigned_column" = 'f' AND "unsigned_columns_tests"."references_unsigned_column_id" = 23 LIMIT 1
58
+  (0.1ms) begin transaction
59
+ SQL (1.8ms) INSERT INTO "unsigned_columns_tests" ("boolean_unsigned_column", "created_at", "decimal_unsigned_column", "integer_signed_column", "integer_unsigned_column", "references_unsigned_column_id", "string_column", "unsigned_float_column", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["boolean_unsigned_column", false], ["created_at", Wed, 24 Oct 2012 15:16:48 UTC +00:00], ["decimal_unsigned_column", #<BigDecimal:7fc2e8f80b08,'0.66669E2',18(45)>], ["integer_signed_column", -1], ["integer_unsigned_column", 1], ["references_unsigned_column_id", 23], ["string_column", "Prueba 1"], ["unsigned_float_column", 33.334], ["updated_at", Wed, 24 Oct 2012 15:16:48 UTC +00:00]]
60
+  (2.6ms) commit transaction
61
+ UnsignedColumnsTest Load (0.4ms) SELECT "unsigned_columns_tests".* FROM "unsigned_columns_tests" WHERE "unsigned_columns_tests"."integer_unsigned_column" = -1 AND "unsigned_columns_tests"."integer_signed_column" = -1 AND "unsigned_columns_tests"."string_column" = 'Prueba 2' AND "unsigned_columns_tests"."decimal_unsigned_column" = -66.669 AND "unsigned_columns_tests"."unsigned_float_column" = -33.334 AND "unsigned_columns_tests"."boolean_unsigned_column" = 'f' AND "unsigned_columns_tests"."references_unsigned_column_id" = -23 LIMIT 1
62
+  (0.0ms) begin transaction
63
+ SQL (0.6ms) INSERT INTO "unsigned_columns_tests" ("boolean_unsigned_column", "created_at", "decimal_unsigned_column", "integer_signed_column", "integer_unsigned_column", "references_unsigned_column_id", "string_column", "unsigned_float_column", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["boolean_unsigned_column", false], ["created_at", Wed, 24 Oct 2012 15:16:48 UTC +00:00], ["decimal_unsigned_column", #<BigDecimal:7fc2e8e5f5a8,'-0.66669E2',18(45)>], ["integer_signed_column", -1], ["integer_unsigned_column", -1], ["references_unsigned_column_id", -23], ["string_column", "Prueba 2"], ["unsigned_float_column", -33.334], ["updated_at", Wed, 24 Oct 2012 15:16:48 UTC +00:00]]
64
+  (2.3ms) commit transaction
@@ -1511,3 +1511,102 @@ Connecting to database specified by database.yml
1511
1511
   (0.3ms) BEGIN
1512
1512
  SQL (0.5ms) INSERT INTO `unsigned_columns_tests` (`boolean_unsigned_column`, `created_at`, `decimal_unsigned_column`, `integer_signed_column`, `integer_unsigned_column`, `references_unsigned_column_id`, `string_column`, `unsigned_float_column`, `updated_at`) VALUES (0, '2012-10-24 09:12:39', -66.669, -1, -1, -23, 'Prueba 2', -33.334, '2012-10-24 09:12:39')
1513
1513
   (0.5ms) COMMIT
1514
+ Connecting to database specified by database.yml
1515
+  (6.3ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
1516
+  (6.0ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
1517
+  (2.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
1518
+ Migrating to CreateUnsignedColumnsTests (20121024034824)
1519
+  (3.0ms) CREATE TABLE `unsigned_columns_tests` (`id` INT UNSIGNED DEFAULT NULL auto_increment PRIMARY KEY, `integer_unsigned_column` smallint UNSIGNED COMMENT 'Prueba con columna tipo Integer Unsigned.', `integer_signed_column` smallint COMMENT 'Prueba con columna tipo Integer.', `string_column` varchar(24) COMMENT 'Prueba con columna tipo String.', `decimal_unsigned_column` decimal(4,2) UNSIGNED COMMENT 'Prueba con columna tipo Decimal Unsigned.', `unsigned_float_column` float UNSIGNED COMMENT 'Prueba con columna tipo Float Unsigned.', `boolean_unsigned_column` tinyint(1) UNSIGNED COMMENT 'Prueba con columna tipo Boolean Unsigned.', `references_unsigned_column_id` int(11) UNSIGNED COMMENT 'Prueba con columna tipo References Unsigned.', `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) COMMENT='Pruebas de unsigned columns.'
1520
+  (4.0ms) CREATE INDEX `FK_unsigned_references_column_test` ON `unsigned_columns_tests` (`references_unsigned_column_id`)
1521
+  (1.1ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20121024034824')
1522
+ Migrating to CreateJoinTableTest (20121024090232)
1523
+  (2.3ms) CREATE TABLE `join_table_tests` (`object_a_id` smallint UNSIGNED COMMENT 'Prueba con columna tipo References Unsigned (A).', `object_b_id` smallint UNSIGNED COMMENT 'Prueba con columna tipo References Unsigned (B).') COMMENT='Pruebas de join_table (:id => false).'
1524
+  (3.7ms) CREATE INDEX `FK_join_table_test_a` ON `join_table_tests` (`object_a_id`)
1525
+  (4.4ms) CREATE INDEX `FK_join_table_test_b` ON `join_table_tests` (`object_b_id`)
1526
+  (0.8ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20121024090232')
1527
+  (0.8ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
1528
+ Connecting to database specified by database.yml
1529
+  (2.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
1530
+ UnsignedColumnsTest Load (1.4ms) SELECT `unsigned_columns_tests`.* FROM `unsigned_columns_tests` WHERE `unsigned_columns_tests`.`integer_unsigned_column` = 1 AND `unsigned_columns_tests`.`integer_signed_column` = -1 AND `unsigned_columns_tests`.`string_column` = 'Prueba 1' AND `unsigned_columns_tests`.`decimal_unsigned_column` = 66.669 AND `unsigned_columns_tests`.`unsigned_float_column` = 33.334 AND `unsigned_columns_tests`.`boolean_unsigned_column` = 0 AND `unsigned_columns_tests`.`references_unsigned_column_id` = 23 LIMIT 1
1531
+  (0.6ms) BEGIN
1532
+ SQL (1.0ms) INSERT INTO `unsigned_columns_tests` (`boolean_unsigned_column`, `created_at`, `decimal_unsigned_column`, `integer_signed_column`, `integer_unsigned_column`, `references_unsigned_column_id`, `string_column`, `unsigned_float_column`, `updated_at`) VALUES (0, '2012-10-24 14:55:13', 66.669, -1, 1, 23, 'Prueba 1', 33.334, '2012-10-24 14:55:13')
1533
+  (1.9ms) COMMIT
1534
+ UnsignedColumnsTest Load (0.8ms) SELECT `unsigned_columns_tests`.* FROM `unsigned_columns_tests` WHERE `unsigned_columns_tests`.`integer_unsigned_column` = -1 AND `unsigned_columns_tests`.`integer_signed_column` = -1 AND `unsigned_columns_tests`.`string_column` = 'Prueba 2' AND `unsigned_columns_tests`.`decimal_unsigned_column` = -66.669 AND `unsigned_columns_tests`.`unsigned_float_column` = -33.334 AND `unsigned_columns_tests`.`boolean_unsigned_column` = 0 AND `unsigned_columns_tests`.`references_unsigned_column_id` = -23 LIMIT 1
1535
+  (0.4ms) BEGIN
1536
+ SQL (0.5ms) INSERT INTO `unsigned_columns_tests` (`boolean_unsigned_column`, `created_at`, `decimal_unsigned_column`, `integer_signed_column`, `integer_unsigned_column`, `references_unsigned_column_id`, `string_column`, `unsigned_float_column`, `updated_at`) VALUES (0, '2012-10-24 14:55:13', -66.669, -1, -1, -23, 'Prueba 2', -33.334, '2012-10-24 14:55:13')
1537
+  (0.6ms) COMMIT
1538
+ Connecting to database specified by database.yml
1539
+  (2.6ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
1540
+  (3.7ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
1541
+  (2.0ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
1542
+ Migrating to CreateUnsignedColumnsTests (20121024034824)
1543
+  (3.0ms) CREATE TABLE `unsigned_columns_tests` (`id` INT UNSIGNED DEFAULT NULL auto_increment PRIMARY KEY, `integer_unsigned_column` smallint UNSIGNED COMMENT 'Prueba con columna tipo Integer Unsigned.', `integer_signed_column` smallint COMMENT 'Prueba con columna tipo Integer.', `string_column` varchar(24) COMMENT 'Prueba con columna tipo String.', `decimal_unsigned_column` decimal(4,2) UNSIGNED COMMENT 'Prueba con columna tipo Decimal Unsigned.', `unsigned_float_column` float UNSIGNED COMMENT 'Prueba con columna tipo Float Unsigned.', `boolean_unsigned_column` tinyint(1) UNSIGNED COMMENT 'Prueba con columna tipo Boolean Unsigned.', `references_unsigned_column_id` int(11) UNSIGNED COMMENT 'Prueba con columna tipo References Unsigned.', `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) COMMENT='Pruebas de unsigned columns.'
1544
+  (4.9ms) CREATE INDEX `FK_unsigned_references_column_test` ON `unsigned_columns_tests` (`references_unsigned_column_id`)
1545
+  (0.9ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20121024034824')
1546
+ Migrating to CreateJoinTableTest (20121024090232)
1547
+  (2.4ms) CREATE TABLE `join_table_tests` (`object_a_id` smallint UNSIGNED COMMENT 'Prueba con columna tipo References Unsigned (A).', `object_b_id` smallint UNSIGNED COMMENT 'Prueba con columna tipo References Unsigned (B).') COMMENT='Pruebas de join_table (:id => false).'
1548
+  (4.9ms) CREATE INDEX `FK_join_table_test_a` ON `join_table_tests` (`object_a_id`)
1549
+  (4.6ms) CREATE INDEX `FK_join_table_test_b` ON `join_table_tests` (`object_b_id`)
1550
+  (0.8ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20121024090232')
1551
+  (0.4ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
1552
+ Connecting to database specified by database.yml
1553
+  (2.3ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
1554
+ UnsignedColumnsTest Load (1.1ms) SELECT `unsigned_columns_tests`.* FROM `unsigned_columns_tests` WHERE `unsigned_columns_tests`.`integer_unsigned_column` = 1 AND `unsigned_columns_tests`.`integer_signed_column` = -1 AND `unsigned_columns_tests`.`string_column` = 'Prueba 1' AND `unsigned_columns_tests`.`decimal_unsigned_column` = 66.669 AND `unsigned_columns_tests`.`unsigned_float_column` = 33.334 AND `unsigned_columns_tests`.`boolean_unsigned_column` = 0 AND `unsigned_columns_tests`.`references_unsigned_column_id` = 23 LIMIT 1
1555
+  (0.5ms) BEGIN
1556
+ SQL (0.9ms) INSERT INTO `unsigned_columns_tests` (`boolean_unsigned_column`, `created_at`, `decimal_unsigned_column`, `integer_signed_column`, `integer_unsigned_column`, `references_unsigned_column_id`, `string_column`, `unsigned_float_column`, `updated_at`) VALUES (0, '2012-10-24 14:55:52', 66.669, -1, 1, 23, 'Prueba 1', 33.334, '2012-10-24 14:55:52')
1557
+  (2.3ms) COMMIT
1558
+ UnsignedColumnsTest Load (0.8ms) SELECT `unsigned_columns_tests`.* FROM `unsigned_columns_tests` WHERE `unsigned_columns_tests`.`integer_unsigned_column` = -1 AND `unsigned_columns_tests`.`integer_signed_column` = -1 AND `unsigned_columns_tests`.`string_column` = 'Prueba 2' AND `unsigned_columns_tests`.`decimal_unsigned_column` = -66.669 AND `unsigned_columns_tests`.`unsigned_float_column` = -33.334 AND `unsigned_columns_tests`.`boolean_unsigned_column` = 0 AND `unsigned_columns_tests`.`references_unsigned_column_id` = -23 LIMIT 1
1559
+  (0.4ms) BEGIN
1560
+ SQL (0.5ms) INSERT INTO `unsigned_columns_tests` (`boolean_unsigned_column`, `created_at`, `decimal_unsigned_column`, `integer_signed_column`, `integer_unsigned_column`, `references_unsigned_column_id`, `string_column`, `unsigned_float_column`, `updated_at`) VALUES (0, '2012-10-24 14:55:52', -66.669, -1, -1, -23, 'Prueba 2', -33.334, '2012-10-24 14:55:52')
1561
+  (0.7ms) COMMIT
1562
+ Connecting to database specified by database.yml
1563
+  (5.0ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
1564
+ Mysql2::Error: SELECT command denied to user 'u_yapp'@'192.168.105.1' for table 'schema_migrations': SHOW KEYS FROM `schema_migrations`
1565
+ Connecting to database specified by database.yml
1566
+  (5.3ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
1567
+  (4.5ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
1568
+  (1.9ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
1569
+ Migrating to CreateUnsignedColumnsTests (20121024034824)
1570
+  (3.0ms) CREATE TABLE `unsigned_columns_tests` (`id` INT UNSIGNED DEFAULT NULL auto_increment PRIMARY KEY, `integer_unsigned_column` smallint UNSIGNED COMMENT 'Prueba con columna tipo Integer Unsigned.', `integer_signed_column` smallint COMMENT 'Prueba con columna tipo Integer.', `string_column` varchar(24) COMMENT 'Prueba con columna tipo String.', `decimal_unsigned_column` decimal(4,2) UNSIGNED COMMENT 'Prueba con columna tipo Decimal Unsigned.', `unsigned_float_column` float UNSIGNED COMMENT 'Prueba con columna tipo Float Unsigned.', `boolean_unsigned_column` tinyint(1) UNSIGNED COMMENT 'Prueba con columna tipo Boolean Unsigned.', `references_unsigned_column_id` int(11) UNSIGNED COMMENT 'Prueba con columna tipo References Unsigned.', `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) COMMENT='Pruebas de unsigned columns.'
1571
+  (4.5ms) CREATE INDEX `FK_unsigned_references_column_test` ON `unsigned_columns_tests` (`references_unsigned_column_id`)
1572
+  (0.8ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20121024034824')
1573
+ Migrating to CreateJoinTableTest (20121024090232)
1574
+  (2.3ms) CREATE TABLE `join_table_tests` (`object_a_id` smallint UNSIGNED COMMENT 'Prueba con columna tipo References Unsigned (A).', `object_b_id` smallint UNSIGNED COMMENT 'Prueba con columna tipo References Unsigned (B).') COMMENT='Pruebas de join_table (:id => false).'
1575
+  (4.8ms) CREATE INDEX `FK_join_table_test_a` ON `join_table_tests` (`object_a_id`)
1576
+  (4.0ms) CREATE INDEX `FK_join_table_test_b` ON `join_table_tests` (`object_b_id`)
1577
+  (0.8ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20121024090232')
1578
+  (0.6ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
1579
+ Connecting to database specified by database.yml
1580
+  (2.0ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
1581
+ UnsignedColumnsTest Load (1.3ms) SELECT `unsigned_columns_tests`.* FROM `unsigned_columns_tests` WHERE `unsigned_columns_tests`.`integer_unsigned_column` = 1 AND `unsigned_columns_tests`.`integer_signed_column` = -1 AND `unsigned_columns_tests`.`string_column` = 'Prueba 1' AND `unsigned_columns_tests`.`decimal_unsigned_column` = 66.669 AND `unsigned_columns_tests`.`unsigned_float_column` = 33.334 AND `unsigned_columns_tests`.`boolean_unsigned_column` = 0 AND `unsigned_columns_tests`.`references_unsigned_column_id` = 23 LIMIT 1
1582
+  (0.7ms) BEGIN
1583
+ SQL (1.1ms) INSERT INTO `unsigned_columns_tests` (`boolean_unsigned_column`, `created_at`, `decimal_unsigned_column`, `integer_signed_column`, `integer_unsigned_column`, `references_unsigned_column_id`, `string_column`, `unsigned_float_column`, `updated_at`) VALUES (0, '2012-10-24 15:10:06', 66.669, -1, 1, 23, 'Prueba 1', 33.334, '2012-10-24 15:10:06')
1584
+  (1.8ms) COMMIT
1585
+ UnsignedColumnsTest Load (1.0ms) SELECT `unsigned_columns_tests`.* FROM `unsigned_columns_tests` WHERE `unsigned_columns_tests`.`integer_unsigned_column` = -1 AND `unsigned_columns_tests`.`integer_signed_column` = -1 AND `unsigned_columns_tests`.`string_column` = 'Prueba 2' AND `unsigned_columns_tests`.`decimal_unsigned_column` = -66.669 AND `unsigned_columns_tests`.`unsigned_float_column` = -33.334 AND `unsigned_columns_tests`.`boolean_unsigned_column` = 0 AND `unsigned_columns_tests`.`references_unsigned_column_id` = -23 LIMIT 1
1586
+  (0.5ms) BEGIN
1587
+ SQL (0.7ms) INSERT INTO `unsigned_columns_tests` (`boolean_unsigned_column`, `created_at`, `decimal_unsigned_column`, `integer_signed_column`, `integer_unsigned_column`, `references_unsigned_column_id`, `string_column`, `unsigned_float_column`, `updated_at`) VALUES (0, '2012-10-24 15:10:06', -66.669, -1, -1, -23, 'Prueba 2', -33.334, '2012-10-24 15:10:06')
1588
+  (0.6ms) COMMIT
1589
+ Connecting to database specified by database.yml
1590
+  (6.2ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
1591
+  (3.5ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
1592
+  (2.0ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
1593
+ Migrating to CreateUnsignedColumnsTests (20121024034824)
1594
+  (3.5ms) CREATE TABLE `unsigned_columns_tests` (`id` INT UNSIGNED DEFAULT NULL auto_increment PRIMARY KEY, `integer_unsigned_column` smallint UNSIGNED COMMENT 'Prueba con columna tipo Integer Unsigned.', `integer_signed_column` smallint COMMENT 'Prueba con columna tipo Integer.', `string_column` varchar(24) COMMENT 'Prueba con columna tipo String.', `decimal_unsigned_column` decimal(4,2) UNSIGNED COMMENT 'Prueba con columna tipo Decimal Unsigned.', `unsigned_float_column` float UNSIGNED COMMENT 'Prueba con columna tipo Float Unsigned.', `boolean_unsigned_column` tinyint(1) UNSIGNED COMMENT 'Prueba con columna tipo Boolean Unsigned.', `references_unsigned_column_id` int(11) UNSIGNED COMMENT 'Prueba con columna tipo References Unsigned.', `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) COMMENT='Pruebas de unsigned columns.'
1595
+  (4.6ms) CREATE INDEX `FK_unsigned_references_column_test` ON `unsigned_columns_tests` (`references_unsigned_column_id`)
1596
+  (0.8ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20121024034824')
1597
+ Migrating to CreateJoinTableTest (20121024090232)
1598
+  (2.7ms) CREATE TABLE `join_table_tests` (`object_a_id` smallint UNSIGNED COMMENT 'Prueba con columna tipo References Unsigned (A).', `object_b_id` smallint UNSIGNED COMMENT 'Prueba con columna tipo References Unsigned (B).') COMMENT='Pruebas de join_table (:id => false).'
1599
+  (4.2ms) CREATE INDEX `FK_join_table_test_a` ON `join_table_tests` (`object_a_id`)
1600
+  (3.8ms) CREATE INDEX `FK_join_table_test_b` ON `join_table_tests` (`object_b_id`)
1601
+  (0.7ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20121024090232')
1602
+  (0.4ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
1603
+ Connecting to database specified by database.yml
1604
+  (1.8ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
1605
+ UnsignedColumnsTest Load (1.0ms) SELECT `unsigned_columns_tests`.* FROM `unsigned_columns_tests` WHERE `unsigned_columns_tests`.`integer_unsigned_column` = 1 AND `unsigned_columns_tests`.`integer_signed_column` = -1 AND `unsigned_columns_tests`.`string_column` = 'Prueba 1' AND `unsigned_columns_tests`.`decimal_unsigned_column` = 66.669 AND `unsigned_columns_tests`.`unsigned_float_column` = 33.334 AND `unsigned_columns_tests`.`boolean_unsigned_column` = 0 AND `unsigned_columns_tests`.`references_unsigned_column_id` = 23 LIMIT 1
1606
+  (0.5ms) BEGIN
1607
+ SQL (0.7ms) INSERT INTO `unsigned_columns_tests` (`boolean_unsigned_column`, `created_at`, `decimal_unsigned_column`, `integer_signed_column`, `integer_unsigned_column`, `references_unsigned_column_id`, `string_column`, `unsigned_float_column`, `updated_at`) VALUES (0, '2012-10-24 15:14:20', 66.669, -1, 1, 23, 'Prueba 1', 33.334, '2012-10-24 15:14:20')
1608
+  (1.4ms) COMMIT
1609
+ UnsignedColumnsTest Load (0.7ms) SELECT `unsigned_columns_tests`.* FROM `unsigned_columns_tests` WHERE `unsigned_columns_tests`.`integer_unsigned_column` = -1 AND `unsigned_columns_tests`.`integer_signed_column` = -1 AND `unsigned_columns_tests`.`string_column` = 'Prueba 2' AND `unsigned_columns_tests`.`decimal_unsigned_column` = -66.669 AND `unsigned_columns_tests`.`unsigned_float_column` = -33.334 AND `unsigned_columns_tests`.`boolean_unsigned_column` = 0 AND `unsigned_columns_tests`.`references_unsigned_column_id` = -23 LIMIT 1
1610
+  (0.3ms) BEGIN
1611
+ SQL (0.5ms) INSERT INTO `unsigned_columns_tests` (`boolean_unsigned_column`, `created_at`, `decimal_unsigned_column`, `integer_signed_column`, `integer_unsigned_column`, `references_unsigned_column_id`, `string_column`, `unsigned_float_column`, `updated_at`) VALUES (0, '2012-10-24 15:14:20', -66.669, -1, -1, -23, 'Prueba 2', -33.334, '2012-10-24 15:14:20')
1612
+  (0.6ms) COMMIT
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: numeric_type_column
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-24 00:00:00.000000000 Z
12
+ date: 2012-11-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: 3.2.8
21
+ version: 3.2.9
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
- version: 3.2.8
29
+ version: 3.2.9
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: rails
32
32
  requirement: !ruby/object:Gem::Requirement
@@ -34,7 +34,7 @@ dependencies:
34
34
  requirements:
35
35
  - - ~>
36
36
  - !ruby/object:Gem::Version
37
- version: 3.2.8
37
+ version: 3.2.9
38
38
  type: :development
39
39
  prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
@@ -42,7 +42,7 @@ dependencies:
42
42
  requirements:
43
43
  - - ~>
44
44
  - !ruby/object:Gem::Version
45
- version: 3.2.8
45
+ version: 3.2.9
46
46
  - !ruby/object:Gem::Dependency
47
47
  name: sqlite3
48
48
  requirement: !ruby/object:Gem::Requirement
@@ -130,10 +130,13 @@ files:
130
130
  - test/dummy/config/locales/en.yml
131
131
  - test/dummy/config/routes.rb
132
132
  - test/dummy/config.ru
133
+ - test/dummy/db/development.sqlite3
133
134
  - test/dummy/db/migrate/20121024034824_create_unsigned_columns_tests.rb
134
135
  - test/dummy/db/migrate/20121024090232_create_join_table_test.rb
135
136
  - test/dummy/db/schema.rb
136
137
  - test/dummy/db/seeds.rb
138
+ - test/dummy/db/test.sqlite3
139
+ - test/dummy/log/development.log
137
140
  - test/dummy/log/mayhem.log
138
141
  - test/dummy/public/404.html
139
142
  - test/dummy/public/422.html
@@ -207,10 +210,13 @@ test_files:
207
210
  - test/dummy/config/locales/en.yml
208
211
  - test/dummy/config/routes.rb
209
212
  - test/dummy/config.ru
213
+ - test/dummy/db/development.sqlite3
210
214
  - test/dummy/db/migrate/20121024034824_create_unsigned_columns_tests.rb
211
215
  - test/dummy/db/migrate/20121024090232_create_join_table_test.rb
212
216
  - test/dummy/db/schema.rb
213
217
  - test/dummy/db/seeds.rb
218
+ - test/dummy/db/test.sqlite3
219
+ - test/dummy/log/development.log
214
220
  - test/dummy/log/mayhem.log
215
221
  - test/dummy/public/404.html
216
222
  - test/dummy/public/422.html
@@ -225,4 +231,3 @@ test_files:
225
231
  - test/dummy/test/unit/unsigned_columns_test_test.rb
226
232
  - test/numeric_type_column_test.rb
227
233
  - test/test_helper.rb
228
- has_rdoc: