nostalgic 0.1.7 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/nostalgic/_collection_select.html.erb +30 -0
- data/lib/nostalgic/form_builder.rb +6 -0
- data/lib/nostalgic/nostalgic_for.rb +21 -2
- data/lib/nostalgic/version.rb +1 -1
- data/test/dummy/app/models/company.rb +3 -0
- data/test/dummy/app/models/user.rb +1 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20161217105723_create_companies.rb +8 -0
- data/test/dummy/db/migrate/20161217105921_add_column_company_id_on_users.rb +5 -0
- data/test/dummy/db/schema.rb +8 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +338 -0
- data/test/dummy/log/test.log +3341 -0
- data/test/dummy/test/models/company_test.rb +5 -0
- data/test/dummy/test/models/user_test.rb +20 -4
- data/test/fixtures/companies.yml +7 -0
- data/test/fixtures/nostalgic/attrs.yml +7 -0
- data/test/fixtures/users.yml +1 -0
- data/test/models/nostalgic/attr_test.rb +1 -1
- metadata +19 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 77779e214409136c7495dc9dd2f28aaf1afe4e83
|
4
|
+
data.tar.gz: bbfb7af9e4f93ff8d3ba42f17a4ae601a1e67540
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8bf30e4ab63b106f1062934b312ae1f106f2c53e879649eb2e4057f7d363fe9418284de92a431cd4a8e2e2a0ab8141de046fad105209a7bbcf369778fd2b9e21
|
7
|
+
data.tar.gz: a4b752b98c30f7d108fcc97d9080c31a2ce9510830226cdcc879d8c722968b6c80468854424925d83d85cb1908c693636140f5734939ba4ee293badd712f9051
|
@@ -0,0 +1,30 @@
|
|
1
|
+
<table class="nostalgic">
|
2
|
+
<thead>
|
3
|
+
<tr>
|
4
|
+
<td>
|
5
|
+
<%= f.collection_select attr, collection, value_method, text_method, options, html_options %>
|
6
|
+
</td>
|
7
|
+
<td>
|
8
|
+
<%= f.text_field "#{attr}_effective_at", :class => 'datepicker', :style => 'display: none;' %>
|
9
|
+
<%= image_tag 'nostalgic/list.png', :onclick => 'nostalgic.edit_nostalgic_attr(this); return false;' %>
|
10
|
+
</td>
|
11
|
+
</tr>
|
12
|
+
</thead>
|
13
|
+
<tbody style="display: none;">
|
14
|
+
<% f.object.public_send(attr.to_s.pluralize).each_with_index do |nostalgic_attr, i| %>
|
15
|
+
<%= f.fields_for "#{attr.to_s.pluralize}_attributes][#{i}]", nostalgic_attr do |f| %>
|
16
|
+
<tr>
|
17
|
+
<td>
|
18
|
+
<%= f.hidden_field :id %>
|
19
|
+
<%= f.hidden_field :_destroy %>
|
20
|
+
<%= f.collection_select :value, collection, value_method, text_method, options, html_options.merge(:disabled => true, :readonly => true) %>
|
21
|
+
</td>
|
22
|
+
<td>
|
23
|
+
<%= f.text_field :effective_at, :class => 'datepicker', :disabled => true, :readonly => true %>
|
24
|
+
<%= image_tag 'nostalgic/minus.png', :onclick => 'nostalgic.remove_row(this); return false;' %>
|
25
|
+
</td>
|
26
|
+
</tr>
|
27
|
+
<% end %>
|
28
|
+
<% end %>
|
29
|
+
</tbody>
|
30
|
+
</table>
|
@@ -7,4 +7,10 @@ class ActionView::Helpers::FormBuilder
|
|
7
7
|
@template.render 'nostalgic/text_field', :f => self, :attr => method, :css_class => options[:class]
|
8
8
|
end
|
9
9
|
|
10
|
+
def nostalgic_collection_select(method, collection, value_method, text_method, options = {}, html_options = {})
|
11
|
+
@template.render 'nostalgic/collection_select',
|
12
|
+
:f => self, :attr => method, :collection => collection, :value_method => value_method, :text_method => text_method,
|
13
|
+
:options => options, :html_options => html_options
|
14
|
+
end
|
15
|
+
|
10
16
|
end
|
@@ -38,6 +38,26 @@ module Nostalgic
|
|
38
38
|
module ClassMethods
|
39
39
|
attr_accessor :nostalgic_attrs
|
40
40
|
|
41
|
+
def belongs_to(name, scope = nil, options = {})
|
42
|
+
scope ||= {}
|
43
|
+
super(name, scope.except(:nostalgic), options)
|
44
|
+
|
45
|
+
if scope.fetch(:nostalgic, false)
|
46
|
+
foreign_key = options.fetch(:foreign_key, "#{name}_id")
|
47
|
+
nostalgic_for foreign_key
|
48
|
+
|
49
|
+
class_eval <<-METHODS, __FILE__, __LINE__ + 1
|
50
|
+
def #{name}_on(date)
|
51
|
+
return self.#{name} unless date.present?
|
52
|
+
|
53
|
+
'#{name}'.classify.constantize.find_by_id(#{foreign_key}_at(date))
|
54
|
+
end
|
55
|
+
|
56
|
+
alias_method :#{name}_at, :#{name}_on
|
57
|
+
METHODS
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
41
61
|
def nostalgic_for(*attrs)
|
42
62
|
self.nostalgic_attrs ||= []
|
43
63
|
|
@@ -54,7 +74,7 @@ module Nostalgic
|
|
54
74
|
attr_accessor :#{attr}_effective_at
|
55
75
|
|
56
76
|
def #{attr}_on(date)
|
57
|
-
|
77
|
+
return self.#{attr} unless date.present?
|
58
78
|
|
59
79
|
na = Nostalgic::Attr.where(:model_type => self.class.name, :model_id => self.id, :name => '#{attr}')
|
60
80
|
na = na.where('effective_at <= ?', date).order('effective_at desc').first
|
@@ -62,7 +82,6 @@ module Nostalgic
|
|
62
82
|
end
|
63
83
|
|
64
84
|
alias_method :#{attr}_at, :#{attr}_on
|
65
|
-
|
66
85
|
METHODS
|
67
86
|
end
|
68
87
|
end
|
data/lib/nostalgic/version.rb
CHANGED
Binary file
|
data/test/dummy/db/schema.rb
CHANGED
@@ -11,7 +11,13 @@
|
|
11
11
|
#
|
12
12
|
# It's strongly recommended that you check this file into your version control system.
|
13
13
|
|
14
|
-
ActiveRecord::Schema.define(version:
|
14
|
+
ActiveRecord::Schema.define(version: 20161217105921) do
|
15
|
+
|
16
|
+
create_table "companies", force: :cascade do |t|
|
17
|
+
t.string "name", null: false
|
18
|
+
t.datetime "created_at", null: false
|
19
|
+
t.datetime "updated_at", null: false
|
20
|
+
end
|
15
21
|
|
16
22
|
create_table "nostalgic_attrs", force: :cascade do |t|
|
17
23
|
t.string "model_type", null: false
|
@@ -28,6 +34,7 @@ ActiveRecord::Schema.define(version: 20160816080822) do
|
|
28
34
|
t.string "tel"
|
29
35
|
t.datetime "created_at", null: false
|
30
36
|
t.datetime "updated_at", null: false
|
37
|
+
t.integer "company_id"
|
31
38
|
end
|
32
39
|
|
33
40
|
end
|
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
@@ -559,3 +559,341 @@ Migrating to ChangeColumnUpdatedAtOnNostalgicAttrs (20160816080822)
|
|
559
559
|
[1m[36m (1.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160807101438')[0m
|
560
560
|
[1m[35m (1.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160816080815')
|
561
561
|
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
562
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
563
|
+
Migrating to AddIndexIdAndTypeAndNameOnNostalgicAttrs (20161120085751)
|
564
|
+
[1m[35m (0.0ms)[0m begin transaction
|
565
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
566
|
+
[1m[35m (0.3ms)[0m CREATE INDEX "index_nostalgic_attrs_on_model_id_and_model_type_and_name" ON "nostalgic_attrs" ("model_id", "model_type", "name")
|
567
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20161120085751"]]
|
568
|
+
[1m[35m (2.4ms)[0m commit transaction
|
569
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
570
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
571
|
+
FROM sqlite_master
|
572
|
+
WHERE name='index_nostalgic_attrs_on_model_id_and_model_type_and_name' AND type='index'
|
573
|
+
UNION ALL
|
574
|
+
SELECT sql
|
575
|
+
FROM sqlite_temp_master
|
576
|
+
WHERE name='index_nostalgic_attrs_on_model_id_and_model_type_and_name' AND type='index'
|
577
|
+
|
578
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
579
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
580
|
+
Migrating to AddIndexIdAndTypeAndNameOnNostalgicAttrs (20161120085751)
|
581
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
582
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
583
|
+
FROM sqlite_master
|
584
|
+
WHERE name='index_nostalgic_attrs_on_model_id_and_model_type_and_name' AND type='index'
|
585
|
+
UNION ALL
|
586
|
+
SELECT sql
|
587
|
+
FROM sqlite_temp_master
|
588
|
+
WHERE name='index_nostalgic_attrs_on_model_id_and_model_type_and_name' AND type='index'
|
589
|
+
|
590
|
+
[1m[36m (0.3ms)[0m [1mDROP INDEX "index_nostalgic_attrs_on_model_id_and_model_type_and_name"[0m
|
591
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = ? [["version", "20161120085751"]]
|
592
|
+
[1m[36m (1.8ms)[0m [1mcommit transaction[0m
|
593
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
594
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
595
|
+
Migrating to AddIndexIdAndTypeAndNameOnNostalgicAttrs (20161120085751)
|
596
|
+
[1m[35m (0.0ms)[0m begin transaction
|
597
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
598
|
+
[1m[35m (0.2ms)[0m CREATE INDEX "index_nostalgic_attrs_on_model_id_and_model_type_and_name" ON "nostalgic_attrs" ("model_id", "model_type", "name")
|
599
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20161120085751"]]
|
600
|
+
[1m[35m (2.1ms)[0m commit transaction
|
601
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
602
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
603
|
+
FROM sqlite_master
|
604
|
+
WHERE name='index_nostalgic_attrs_on_model_id_and_model_type_and_name' AND type='index'
|
605
|
+
UNION ALL
|
606
|
+
SELECT sql
|
607
|
+
FROM sqlite_temp_master
|
608
|
+
WHERE name='index_nostalgic_attrs_on_model_id_and_model_type_and_name' AND type='index'
|
609
|
+
|
610
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
611
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
612
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
613
|
+
FROM sqlite_master
|
614
|
+
WHERE name='index_nostalgic_attrs_on_model_id_and_model_type_and_name' AND type='index'
|
615
|
+
UNION ALL
|
616
|
+
SELECT sql
|
617
|
+
FROM sqlite_temp_master
|
618
|
+
WHERE name='index_nostalgic_attrs_on_model_id_and_model_type_and_name' AND type='index'
|
619
|
+
[0m
|
620
|
+
[1m[36m (2.4ms)[0m [1mCREATE TABLE "nostalgic_attrs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_type" varchar NOT NULL, "model_id" integer NOT NULL, "name" varchar NOT NULL, "value" varchar, "effective_at" date NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
621
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
622
|
+
[1m[36m (1.3ms)[0m [1mCREATE INDEX "index_nostalgic_attrs_on_model_id_and_model_type_and_name" ON "nostalgic_attrs" ("model_id", "model_type", "name")[0m
|
623
|
+
[1m[35m (1.5ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar NOT NULL, "tel" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
624
|
+
[1m[36m (2.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
625
|
+
[1m[35m (2.3ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
626
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
627
|
+
[1m[35m (1.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20161120085751')
|
628
|
+
[1m[36m (1.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160807103323')[0m
|
629
|
+
[1m[35m (1.1ms)[0m CREATE TABLE "nostalgic_attrs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_type" varchar NOT NULL, "model_id" integer NOT NULL, "name" varchar NOT NULL, "value" varchar, "effective_at" date NOT NULL, "created_at" datetime, "updated_at" datetime)
|
630
|
+
[1m[36m (0.0ms)[0m [1mselect sqlite_version(*)[0m
|
631
|
+
[1m[35m (1.3ms)[0m CREATE INDEX "index_nostalgic_attrs_on_model_id_and_model_type_and_name" ON "nostalgic_attrs" ("model_id", "model_type", "name")
|
632
|
+
[1m[36m (1.4ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar NOT NULL, "tel" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
633
|
+
[1m[35m (1.4ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
634
|
+
[1m[36m (1.5ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
635
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
636
|
+
[1m[36m (1.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20161120085751')[0m
|
637
|
+
[1m[35m (1.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160807103323')
|
638
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
639
|
+
[1m[36m (3.3ms)[0m [1mCREATE TABLE "nostalgic_attrs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_type" varchar NOT NULL, "model_id" integer NOT NULL, "name" varchar NOT NULL, "value" varchar, "effective_at" date NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
640
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
641
|
+
[1m[36m (2.0ms)[0m [1mCREATE INDEX "index_nostalgic_attrs_on_model_id_and_model_type_and_name" ON "nostalgic_attrs" ("model_id", "model_type", "name")[0m
|
642
|
+
[1m[35m (2.0ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar NOT NULL, "tel" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
643
|
+
[1m[36m (2.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
644
|
+
[1m[35m (2.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
645
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
646
|
+
[1m[35m (1.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20161120085751')
|
647
|
+
[1m[36m (1.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160807103323')[0m
|
648
|
+
[1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160807101438')
|
649
|
+
[1m[36m (1.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160816080815')[0m
|
650
|
+
[1m[35m (1.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160816080822')
|
651
|
+
[1m[36m (1.3ms)[0m [1mCREATE TABLE "nostalgic_attrs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_type" varchar NOT NULL, "model_id" integer NOT NULL, "name" varchar NOT NULL, "value" varchar, "effective_at" date NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
652
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
653
|
+
[1m[36m (1.3ms)[0m [1mCREATE INDEX "index_nostalgic_attrs_on_model_id_and_model_type_and_name" ON "nostalgic_attrs" ("model_id", "model_type", "name")[0m
|
654
|
+
[1m[35m (1.7ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar NOT NULL, "tel" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
655
|
+
[1m[36m (1.5ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
656
|
+
[1m[35m (1.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
657
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
658
|
+
[1m[35m (1.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20161120085751')
|
659
|
+
[1m[36m (1.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160807103323')[0m
|
660
|
+
[1m[35m (1.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160807101438')
|
661
|
+
[1m[36m (1.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160816080815')[0m
|
662
|
+
[1m[35m (1.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160816080822')
|
663
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
664
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
665
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
666
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
667
|
+
FROM sqlite_master
|
668
|
+
WHERE name='index_nostalgic_attrs_on_model_id_and_model_type_and_name' AND type='index'
|
669
|
+
UNION ALL
|
670
|
+
SELECT sql
|
671
|
+
FROM sqlite_temp_master
|
672
|
+
WHERE name='index_nostalgic_attrs_on_model_id_and_model_type_and_name' AND type='index'
|
673
|
+
[0m
|
674
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
675
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
676
|
+
Migrating to AddIndexModelIdAndModelTypeAndNameOnNostalgicAttrs (20161120085751)
|
677
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
678
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
679
|
+
FROM sqlite_master
|
680
|
+
WHERE name='index_nostalgic_attrs_on_model_id_and_model_type_and_name' AND type='index'
|
681
|
+
UNION ALL
|
682
|
+
SELECT sql
|
683
|
+
FROM sqlite_temp_master
|
684
|
+
WHERE name='index_nostalgic_attrs_on_model_id_and_model_type_and_name' AND type='index'
|
685
|
+
|
686
|
+
[1m[36m (0.2ms)[0m [1mDROP INDEX "index_nostalgic_attrs_on_model_id_and_model_type_and_name"[0m
|
687
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = ? [["version", "20161120085751"]]
|
688
|
+
[1m[36m (2.8ms)[0m [1mcommit transaction[0m
|
689
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
690
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
691
|
+
Migrating to AddIndexModelIdAndModelTypeAndNameOnNostalgicAttrs (20161120085751)
|
692
|
+
[1m[35m (0.0ms)[0m begin transaction
|
693
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
694
|
+
[1m[35m (0.2ms)[0m CREATE INDEX "index_nostalgic_attrs_on_model_id_and_model_type_and_name" ON "nostalgic_attrs" ("model_id", "model_type", "name")
|
695
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20161120085751"]]
|
696
|
+
[1m[35m (1.6ms)[0m commit transaction
|
697
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
698
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
699
|
+
FROM sqlite_master
|
700
|
+
WHERE name='index_nostalgic_attrs_on_model_id_and_model_type_and_name' AND type='index'
|
701
|
+
UNION ALL
|
702
|
+
SELECT sql
|
703
|
+
FROM sqlite_temp_master
|
704
|
+
WHERE name='index_nostalgic_attrs_on_model_id_and_model_type_and_name' AND type='index'
|
705
|
+
|
706
|
+
[1m[36m (1.9ms)[0m [1mCREATE TABLE "nostalgic_attrs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_type" varchar NOT NULL, "model_id" integer NOT NULL, "name" varchar NOT NULL, "value" varchar, "effective_at" date NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
707
|
+
[1m[35m (1.3ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar NOT NULL, "tel" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
708
|
+
[1m[36m (1.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
709
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
710
|
+
[1m[36m (2.0ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
711
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
712
|
+
[1m[36m (1.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160816080822')[0m
|
713
|
+
[1m[35m (1.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160807103323')
|
714
|
+
[1m[36m (1.5ms)[0m [1mCREATE TABLE "nostalgic_attrs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_type" varchar NOT NULL, "model_id" integer NOT NULL, "name" varchar NOT NULL, "value" varchar, "effective_at" date NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
715
|
+
[1m[35m (1.5ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar NOT NULL, "tel" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
716
|
+
[1m[36m (1.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
717
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
718
|
+
[1m[36m (1.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
719
|
+
[1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
|
720
|
+
[1m[36m (1.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160816080822')[0m
|
721
|
+
[1m[35m (1.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160807103323')
|
722
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
723
|
+
[1m[36m (3.4ms)[0m [1mCREATE TABLE "nostalgic_attrs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_type" varchar NOT NULL, "model_id" integer NOT NULL, "name" varchar NOT NULL, "value" varchar, "effective_at" date NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
724
|
+
[1m[35m (2.4ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar NOT NULL, "tel" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
725
|
+
[1m[36m (2.4ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
726
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
727
|
+
[1m[36m (2.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
728
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
729
|
+
[1m[36m (2.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160816080822')[0m
|
730
|
+
[1m[35m (1.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160807103323')
|
731
|
+
[1m[36m (2.8ms)[0m [1mCREATE TABLE "nostalgic_attrs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_type" varchar NOT NULL, "model_id" integer NOT NULL, "name" varchar NOT NULL, "value" varchar, "effective_at" date NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
732
|
+
[1m[35m (1.3ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar NOT NULL, "tel" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
733
|
+
[1m[36m (2.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
734
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
735
|
+
[1m[36m (2.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
736
|
+
[1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
|
737
|
+
[1m[36m (2.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160816080822')[0m
|
738
|
+
[1m[35m (1.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160807103323')
|
739
|
+
[1m[36m (1.4ms)[0m [1mCREATE TABLE "nostalgic_attrs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_type" varchar NOT NULL, "model_id" integer NOT NULL, "name" varchar NOT NULL, "value" varchar, "effective_at" date NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
740
|
+
[1m[35m (1.5ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar NOT NULL, "tel" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
741
|
+
[1m[36m (1.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
742
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
743
|
+
[1m[36m (4.6ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
744
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
745
|
+
[1m[36m (1.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160816080822')[0m
|
746
|
+
[1m[35m (1.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160807103323')
|
747
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
748
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
749
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
750
|
+
[1m[36m (3.7ms)[0m [1mCREATE TABLE "nostalgic_attrs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_type" varchar NOT NULL, "model_id" integer NOT NULL, "name" varchar NOT NULL, "value" varchar, "effective_at" date NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
751
|
+
[1m[35m (2.1ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar NOT NULL, "tel" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
752
|
+
[1m[36m (2.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
753
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
754
|
+
[1m[36m (1.7ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
755
|
+
[1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
|
756
|
+
[1m[36m (2.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160816080822')[0m
|
757
|
+
[1m[35m (2.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160807103323')
|
758
|
+
[1m[36m (1.6ms)[0m [1mCREATE TABLE "nostalgic_attrs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_type" varchar NOT NULL, "model_id" integer NOT NULL, "name" varchar NOT NULL, "value" varchar, "effective_at" date NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
759
|
+
[1m[35m (1.6ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar NOT NULL, "tel" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
760
|
+
[1m[36m (1.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
761
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
762
|
+
[1m[36m (1.6ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
763
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
764
|
+
[1m[36m (1.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160816080822')[0m
|
765
|
+
[1m[35m (1.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160807103323')
|
766
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
767
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
768
|
+
Migrating to CreateNostalgicAttrs (20160807101438)
|
769
|
+
[1m[35m (0.0ms)[0m begin transaction
|
770
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "nostalgic_attrs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_type" varchar NOT NULL, "model_id" integer NOT NULL, "name" varchar NOT NULL, "value" varchar, "effective_at" date NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
771
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
772
|
+
[1m[36m (3.2ms)[0m [1mCREATE TABLE "nostalgic_attrs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_type" varchar NOT NULL, "model_id" integer NOT NULL, "name" varchar NOT NULL, "value" varchar, "effective_at" date NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
773
|
+
[1m[35m (1.6ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar NOT NULL, "tel" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
774
|
+
[1m[36m (2.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
775
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
776
|
+
[1m[36m (1.4ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
777
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
778
|
+
[1m[36m (1.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160816080822')[0m
|
779
|
+
[1m[35m (1.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160807103323')
|
780
|
+
[1m[36m (1.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160807101438')[0m
|
781
|
+
[1m[35m (1.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160816080815')
|
782
|
+
[1m[36m (1.3ms)[0m [1mCREATE TABLE "nostalgic_attrs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_type" varchar NOT NULL, "model_id" integer NOT NULL, "name" varchar NOT NULL, "value" varchar, "effective_at" date NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
783
|
+
[1m[35m (1.5ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar NOT NULL, "tel" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
784
|
+
[1m[36m (1.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
785
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
786
|
+
[1m[36m (1.7ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
787
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
788
|
+
[1m[36m (1.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160816080822')[0m
|
789
|
+
[1m[35m (1.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160807103323')
|
790
|
+
[1m[36m (1.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160807101438')[0m
|
791
|
+
[1m[35m (2.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160816080815')
|
792
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
793
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
794
|
+
Migrating to CreateCompanies (20161217105723)
|
795
|
+
[1m[35m (0.0ms)[0m begin transaction
|
796
|
+
[1m[36m (0.6ms)[0m [1mCREATE TABLE "companies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
797
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20161217105723"]]
|
798
|
+
[1m[36m (3.0ms)[0m [1mcommit transaction[0m
|
799
|
+
Migrating to AddColumnCompanyIdOnUsers (20161217105921)
|
800
|
+
[1m[35m (0.1ms)[0m begin transaction
|
801
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "users" ADD "company_id" integer[0m
|
802
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20161217105921"]]
|
803
|
+
[1m[36m (1.9ms)[0m [1mcommit transaction[0m
|
804
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
805
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
806
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
807
|
+
Migrating to AddColumnCompanyIdOnUsers (20161217105921)
|
808
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
809
|
+
[1m[35m (0.4ms)[0m CREATE TEMPORARY TABLE "ausers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar NOT NULL, "tel" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "company_id" integer)
|
810
|
+
[1m[36m (0.0ms)[0m [1mSELECT * FROM "users"[0m
|
811
|
+
[1m[35m (0.2ms)[0m DROP TABLE "users"
|
812
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar NOT NULL, "tel" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
813
|
+
[1m[35m (0.0ms)[0m SELECT * FROM "ausers"
|
814
|
+
[1m[36m (0.1ms)[0m [1mDROP TABLE "ausers"[0m
|
815
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = ? [["version", "20161217105921"]]
|
816
|
+
[1m[36m (2.3ms)[0m [1mcommit transaction[0m
|
817
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
818
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
819
|
+
Migrating to AddColumnCompanyIdOnUsers (20161217105921)
|
820
|
+
[1m[35m (0.0ms)[0m begin transaction
|
821
|
+
[1m[36m (0.2ms)[0m [1mALTER TABLE "users" ADD "company_id" integer NOT NULL[0m
|
822
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
823
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
824
|
+
Migrating to AddColumnCompanyIdOnUsers (20161217105921)
|
825
|
+
[1m[35m (0.0ms)[0m begin transaction
|
826
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "users" ADD "company_id" integer[0m
|
827
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20161217105921"]]
|
828
|
+
[1m[36m (3.1ms)[0m [1mcommit transaction[0m
|
829
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
830
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
831
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
832
|
+
Migrating to AddColumnCompanyIdOnUsers (20161217105921)
|
833
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
834
|
+
[1m[35m (0.4ms)[0m CREATE TEMPORARY TABLE "ausers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar NOT NULL, "tel" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "company_id" integer)
|
835
|
+
[1m[36m (0.0ms)[0m [1mSELECT * FROM "users"[0m
|
836
|
+
[1m[35m (0.1ms)[0m DROP TABLE "users"
|
837
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar NOT NULL, "tel" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
838
|
+
[1m[35m (0.0ms)[0m SELECT * FROM "ausers"
|
839
|
+
[1m[36m (0.1ms)[0m [1mDROP TABLE "ausers"[0m
|
840
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = ? [["version", "20161217105921"]]
|
841
|
+
[1m[36m (2.8ms)[0m [1mcommit transaction[0m
|
842
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
843
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
844
|
+
Migrating to AddColumnCompanyIdOnUsers (20161217105921)
|
845
|
+
[1m[35m (0.0ms)[0m begin transaction
|
846
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "users" ADD "company_id" integer[0m
|
847
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20161217105921"]]
|
848
|
+
[1m[36m (2.0ms)[0m [1mcommit transaction[0m
|
849
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
850
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
851
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
852
|
+
[1m[36m (2.6ms)[0m [1mCREATE TABLE "companies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
853
|
+
[1m[35m (1.7ms)[0m CREATE TABLE "nostalgic_attrs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_type" varchar NOT NULL, "model_id" integer NOT NULL, "name" varchar NOT NULL, "value" varchar, "effective_at" date NOT NULL, "created_at" datetime, "updated_at" datetime)
|
854
|
+
[1m[36m (1.4ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar NOT NULL, "tel" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "company_id" integer) [0m
|
855
|
+
[1m[35m (2.2ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
856
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
857
|
+
[1m[35m (2.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
858
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
859
|
+
[1m[35m (1.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20161217105921')
|
860
|
+
[1m[36m (1.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160807103323')[0m
|
861
|
+
[1m[35m (1.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20161217105723')
|
862
|
+
[1m[36m (1.3ms)[0m [1mCREATE TABLE "companies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
863
|
+
[1m[35m (1.4ms)[0m CREATE TABLE "nostalgic_attrs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_type" varchar NOT NULL, "model_id" integer NOT NULL, "name" varchar NOT NULL, "value" varchar, "effective_at" date NOT NULL, "created_at" datetime, "updated_at" datetime)
|
864
|
+
[1m[36m (1.3ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar NOT NULL, "tel" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "company_id" integer) [0m
|
865
|
+
[1m[35m (1.7ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
866
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
867
|
+
[1m[35m (1.4ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
868
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
869
|
+
[1m[35m (1.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20161217105921')
|
870
|
+
[1m[36m (1.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160807103323')[0m
|
871
|
+
[1m[35m (1.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20161217105723')
|
872
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
873
|
+
[1m[36m (2.7ms)[0m [1mCREATE TABLE "companies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
874
|
+
[1m[35m (1.4ms)[0m CREATE TABLE "nostalgic_attrs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_type" varchar NOT NULL, "model_id" integer NOT NULL, "name" varchar NOT NULL, "value" varchar, "effective_at" date NOT NULL, "created_at" datetime, "updated_at" datetime)
|
875
|
+
[1m[36m (1.3ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar NOT NULL, "tel" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "company_id" integer) [0m
|
876
|
+
[1m[35m (2.1ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
877
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
878
|
+
[1m[35m (1.6ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
879
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
880
|
+
[1m[35m (1.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20161217105921')
|
881
|
+
[1m[36m (1.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160807103323')[0m
|
882
|
+
[1m[35m (1.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20161217105723')
|
883
|
+
[1m[36m (1.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160807101438')[0m
|
884
|
+
[1m[35m (1.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160816080815')
|
885
|
+
[1m[36m (1.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160816080822')[0m
|
886
|
+
[1m[35m (1.2ms)[0m CREATE TABLE "companies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
887
|
+
[1m[36m (1.6ms)[0m [1mCREATE TABLE "nostalgic_attrs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_type" varchar NOT NULL, "model_id" integer NOT NULL, "name" varchar NOT NULL, "value" varchar, "effective_at" date NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
888
|
+
[1m[35m (1.5ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar NOT NULL, "tel" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "company_id" integer)
|
889
|
+
[1m[36m (1.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
890
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
891
|
+
[1m[36m (1.3ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
892
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
893
|
+
[1m[36m (1.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20161217105921')[0m
|
894
|
+
[1m[35m (1.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160807103323')
|
895
|
+
[1m[36m (1.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20161217105723')[0m
|
896
|
+
[1m[35m (1.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160807101438')
|
897
|
+
[1m[36m (1.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160816080815')[0m
|
898
|
+
[1m[35m (1.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160816080822')
|
899
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|