From d787b1d41cc2da20699d3898994b1d337f277178 Mon Sep 17 00:00:00 2001 From: Toshiaki Asai Date: Sat, 22 Oct 2016 18:09:06 +0900 Subject: システムメッセージのフィールドのtypeが間違っている MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit createdとmodifiedがstringになっていたので、timeに修正 --- core/system/message.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/system/message.rb b/core/system/message.rb index 10cbe864..3f0389a1 100644 --- a/core/system/message.rb +++ b/core/system/message.rb @@ -11,8 +11,8 @@ class Mikutter::System::Message < Retriever::Model field.string :description, required: true field.has :user, Mikutter::System::User, required: true - field.string :created - field.string :modified + field.time :created + field.time :modified entity_class Retriever::Entity::URLEntity -- cgit v1.2.3 From 59ce817e847e36ebdc6d5e21393a900b7a66b0eb Mon Sep 17 00:00:00 2001 From: Toshiaki Asai Date: Sat, 22 Oct 2016 17:04:13 +0900 Subject: intent: IntentToken modelのuriのtypeを修正 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit uriフィールドのtypeはuriでないといけない --- core/plugin/intent/model/intent_token.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/plugin/intent/model/intent_token.rb b/core/plugin/intent/model/intent_token.rb index cd14286f..f22b0fa8 100644 --- a/core/plugin/intent/model/intent_token.rb +++ b/core/plugin/intent/model/intent_token.rb @@ -2,7 +2,7 @@ module Plugin::Intent class IntentToken < Retriever::Model - field.string :uri, required: true + field.uri :uri, required: true field.has :model, Retriever::Model field.has :intent, Plugin::Intent::Intent, required: true field.has :parent, Plugin::Intent::IntentToken -- cgit v1.2.3 From d5570c1b8a718279bc40b5199c2701d1110ed5e4 Mon Sep 17 00:00:00 2001 From: Toshiaki Asai Date: Sat, 22 Oct 2016 16:59:37 +0900 Subject: User modelのidのtypeが間違っている MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit string -> int --- core/user.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/user.rb b/core/user.rb index 7d247c82..6c4e7976 100644 --- a/core/user.rb +++ b/core/user.rb @@ -20,7 +20,7 @@ class User < Retriever::Model # detail | detail # profile_image_url | icon - field.string :id + field.int :id field.string :idname field.string :name field.string :location -- cgit v1.2.3