-
-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #717 from Freika/dev
0.23.5
- Loading branch information
Showing
17 changed files
with
175 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.23.3 | ||
0.23.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,6 @@ def index | |
private | ||
|
||
def required_params | ||
%i[start_at end_at api_key] | ||
%i[start_at end_at] | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Mark existing migrations as safe | ||
StrongMigrations.start_after = 20_250_122_150_500 | ||
|
||
# Set timeouts for migrations | ||
# If you use PgBouncer in transaction mode, delete these lines and set timeouts on the database user | ||
StrongMigrations.lock_timeout = 10.seconds | ||
StrongMigrations.statement_timeout = 1.hour | ||
|
||
# Analyze tables after indexes are added | ||
# Outdated statistics can sometimes hurt performance | ||
StrongMigrations.auto_analyze = true | ||
|
||
# Set the version of the production database | ||
# so the right checks are run in development | ||
# StrongMigrations.target_version = 10 | ||
|
||
# Add custom checks | ||
# StrongMigrations.add_check do |method, args| | ||
# if method == :add_index && args[0].to_s == "users" | ||
# stop! "No more indexes on the users table" | ||
# end | ||
# end | ||
|
||
# Make some operations safe by default | ||
# See https://github.com/ankane/strong_migrations#safe-by-default | ||
# StrongMigrations.safe_by_default = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# frozen_string_literal: true | ||
|
||
class AddDatabaseUsersConstraints < ActiveRecord::Migration[8.0] | ||
def change | ||
add_check_constraint :users, 'email IS NOT NULL', name: 'users_email_null', validate: false | ||
add_check_constraint :users, 'admin IS NOT NULL', name: 'users_admin_null', validate: false | ||
end | ||
end |
14 changes: 14 additions & 0 deletions
14
db/migrate/20241226202831_validate_add_database_users_constraints.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# frozen_string_literal: true | ||
|
||
class ValidateAddDatabaseUsersConstraints < ActiveRecord::Migration[8.0] | ||
def up | ||
validate_check_constraint :users, name: 'users_email_null' | ||
change_column_null :users, :email, false | ||
remove_check_constraint :users, name: 'users_email_null' | ||
end | ||
|
||
def down | ||
add_check_constraint :users, 'email IS NOT NULL', name: 'users_email_null', validate: false | ||
change_column_null :users, :email, true | ||
end | ||
end |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?xml version="1.0" encoding="utf-8" standalone="no"?> | ||
<gpx creator="Arc App" version="1.1" xmlns="http://www.topografix.com/GPX/1/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | ||
<wpt lat="16.822590884135522" lon="100.26450188975753"> | ||
<time>2024-12-17T19:40:05+07:00</time> | ||
<ele>89.9031832732575</ele> | ||
<name>Topland Hotel & Convention Center</name> | ||
</wpt> | ||
<trk> | ||
<type>walking</type> | ||
<trkseg /> | ||
</trk> | ||
<trk> | ||
<type>taxi</type> | ||
<trkseg> | ||
<trkpt lat="16.82179723266299" lon="100.26501096574162"> | ||
<ele>49.96302288016834</ele> | ||
<time>2024-12-18T08:44:09+07:00</time> | ||
</trkpt> | ||
<trkpt lat="16.821804657654933" lon="100.26501263671403"> | ||
<ele>49.884678590538186</ele> | ||
<time>2024-12-18T08:44:16+07:00</time> | ||
</trkpt> | ||
<trkpt lat="16.821831929143876" lon="100.26500741687741"> | ||
<ele>49.71960135141746</ele> | ||
<time>2024-12-18T08:44:21+07:00</time> | ||
</trkpt> | ||
<trkpt lat="16.821889949418637" lon="100.26494683052165"> | ||
<ele>49.91594081568717</ele> | ||
<time>2024-12-18T08:44:29+07:00</time> | ||
</trkpt> | ||
<trkpt lat="16.821914934283804" lon="100.26485762911803"> | ||
<ele>50.344669848377556</ele> | ||
<time>2024-12-18T08:44:38+07:00</time> | ||
</trkpt> | ||
<trkpt lat="16.821949486294397" lon="100.26482772930362"> | ||
<ele>50.12800953488726</ele> | ||
<time>2024-12-18T08:44:45+07:00</time> | ||
</trkpt> | ||
</trkseg> | ||
</trk> | ||
</gpx> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters