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
e6ad01b5
Commit
e6ad01b5
authored
7 years ago
by
ivan Lan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Let AutoStation use index name
parent
d626d089
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
2_create_auto_station_ten_mins.rb
db/migrate/2_create_auto_station_ten_mins.rb
+1
-1
auto_station.rb
lib/weather-model/source_schemas/auto_station.rb
+1
-1
No files found.
db/migrate/2_create_auto_station_ten_mins.rb
View file @
e6ad01b5
...
...
@@ -20,7 +20,7 @@ class CreateTenMinAutoStations < ActiveRecord::Migration[5.0]
end
add_index
:auto_station_ten_mins
,
:datetime
add_index
:auto_station_ten_mins
,
:
sitenumber
add_index
:auto_station_ten_mins
,
:
name
end
def
down
...
...
This diff is collapsed.
Click to expand it.
lib/weather-model/source_schemas/autostation.rb
→
lib/weather-model/source_schemas/auto
_
station.rb
View file @
e6ad01b5
...
...
@@ -21,7 +21,7 @@ module WeatherModel
pressure: :string
,
},
options:
{
index:
%i[datetime
sitenumber
]
,
index:
%i[datetime
name
]
,
expire:
4
*
60
*
60
,
unique:
nil
,
father:
nil
,
...
...
This diff is collapsed.
Click to expand it.
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