Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove extra newline from schema.rb #64

Open
santiagodoldan opened this issue Jun 16, 2023 · 0 comments
Open

Remove extra newline from schema.rb #64

santiagodoldan opened this issue Jun 16, 2023 · 0 comments
Labels
good first issue Good for newcomers

Comments

@santiagodoldan
Copy link
Contributor

Before closing the schema class, there is an extra new line that should be removed

ActiveRecord::Schema.define(version: 9) do
  ...

  create_continuous_aggregate "temperature_events", <<-SQL
    SELECT time_bucket('1 day'::interval, events.created_at) AS time_bucket,
      avg(events.value) AS avg
     FROM events
    WHERE ((events.event_type)::text = 'temperature'::text)
    GROUP BY (time_bucket('1 day'::interval, events.created_at))
    ORDER BY (time_bucket('1 day'::interval, events.created_at));
  SQL

  add_continuous_aggregate_policy "temperature_events", "10 days", "1 day", "1 hour"

end
@ivanetchart ivanetchart added the good first issue Good for newcomers label Jun 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants