enum_extensions 1.0.0 → 1.0.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/enum_extensions/version.rb +1 -1
- data/test/dummy/app/models/book.rb +7 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20151002191153_create_books.rb +13 -0
- data/test/dummy/db/schema.rb +24 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +25 -0
- data/test/dummy/log/test.log +6094 -0
- data/test/enum_extensions_test.rb +234 -1
- data/test/fixtures/books.yml +9 -0
- metadata +19 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d6dcc940c68eada8719ff5ea66d810dcf4c6f9c
|
4
|
+
data.tar.gz: 2423ed2ef930e54404b371154fc03ab5e0f634c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05ef2f091d6f1b531f0099cfafe797836f31aac97418049ae061bcbe0ac65c4701801083569c1966904c101df8fd4fdd18688cb520d08ec28a46874f5368897a
|
7
|
+
data.tar.gz: b4cb7b7793675e60d44568ef9eaadb2ad58a07d40a58de8648d5a0601859421410845b059c24d79586effb945777827c039cf9508e7fc22e8a5c39c637d7905b
|
Binary file
|
@@ -0,0 +1,13 @@
|
|
1
|
+
class CreateBooks < ActiveRecord::Migration
|
2
|
+
|
3
|
+
def change
|
4
|
+
create_table :books do |t|
|
5
|
+
t.column :name, :string
|
6
|
+
t.string :format
|
7
|
+
t.column :status, :integer, default: 0
|
8
|
+
t.column :read_status, :integer, default: 0
|
9
|
+
t.column :nullable_status, :integer
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
end
|
@@ -0,0 +1,24 @@
|
|
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: 20151002191153) do
|
15
|
+
|
16
|
+
create_table "books", force: :cascade do |t|
|
17
|
+
t.string "name"
|
18
|
+
t.string "format"
|
19
|
+
t.integer "status", default: 0
|
20
|
+
t.integer "read_status", default: 0
|
21
|
+
t.integer "nullable_status"
|
22
|
+
end
|
23
|
+
|
24
|
+
end
|
Binary file
|
@@ -0,0 +1,25 @@
|
|
1
|
+
[1m[36m (1.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
2
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
3
|
+
[1m[36m (1.4ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
4
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
5
|
+
Migrating to CreateBooks (20151002191153)
|
6
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
7
|
+
[1m[35m (1.3ms)[0m CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "status" integer DEFAULT 0, "read_status" integer DEFAULT 0, "nullable_status" integer)
|
8
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20151002191153"]]
|
9
|
+
[1m[35m (1.1ms)[0m commit transaction
|
10
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
11
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
12
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
13
|
+
Migrating to CreateBooks (20151002191153)
|
14
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
15
|
+
[1m[35m (19.7ms)[0m DROP TABLE "books"
|
16
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = ?[0m [["version", "20151002191153"]]
|
17
|
+
[1m[35m (1.9ms)[0m commit transaction
|
18
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
19
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
20
|
+
Migrating to CreateBooks (20151002191153)
|
21
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
22
|
+
[1m[35m (0.6ms)[0m CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "format" varchar, "status" integer DEFAULT 0, "read_status" integer DEFAULT 0, "nullable_status" integer)
|
23
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20151002191153"]]
|
24
|
+
[1m[35m (9.5ms)[0m commit transaction
|
25
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|