Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
weather-model
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
weather-model
Commits
2dd34779
Commit
2dd34779
authored
Jun 01, 2017
by
ivan Lan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove column type from WeatherIndex
parent
0a91564d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
2 deletions
+0
-2
4_create_aqi_lives.rb
db/migrate/4_create_aqi_lives.rb
+0
-0
other.rb
lib/weather-model/source_schemas/other.rb
+0
-2
No files found.
db/migrate/4_create_
city_
aqi_lives.rb
→
db/migrate/4_create_aqi_lives.rb
View file @
2dd34779
File moved
lib/weather-model/source_schemas/other.rb
View file @
2dd34779
...
@@ -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"
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment