Commit 2dd34779 by ivan Lan

Remove column type from WeatherIndex

parent 0a91564d
...@@ -5,7 +5,6 @@ module WeatherModel ...@@ -5,7 +5,6 @@ module WeatherModel
table_name: :weather_index, table_name: :weather_index,
schema: { schema: {
publishtime: :datetime, publishtime: :datetime,
type: :string,
report_time: :string, report_time: :string,
list: :text list: :text
}, },
...@@ -18,7 +17,6 @@ module WeatherModel ...@@ -18,7 +17,6 @@ module WeatherModel
factory: { factory: {
publishtime: Time.parse('2017-05-16 16:00'), publishtime: Time.parse('2017-05-16 16:00'),
report_time: '2017-05-16 16:00', report_time: '2017-05-16 16:00',
warning_type: "雷电",
list: [ list: [
{:detail=>"日照强度强,外出需加强防护。", :id=>"1", :level=>"3级", :mean=>"加强防护", :name=>"日照指数", :shortcues=>"强", :time=>"2017-06-02"}, {:detail=>"日照强度强,外出需加强防护。", :id=>"1", :level=>"3级", :mean=>"加强防护", :name=>"日照指数", :shortcues=>"强", :time=>"2017-06-02"},
{:detail=>"气温适宜,人体感觉略偏暖,较为舒适。", :id=>"2", :level=>"1级", :mean=>"气温适宜,人体感觉略偏暖,较为舒适", :name=>"体感指数(上午)", :shortcues=>"较舒适", :time=>"2017-06-02"} {:detail=>"气温适宜,人体感觉略偏暖,较为舒适。", :id=>"2", :level=>"1级", :mean=>"气温适宜,人体感觉略偏暖,较为舒适", :name=>"体感指数(上午)", :shortcues=>"较舒适", :time=>"2017-06-02"}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment