Tom Hughes
eada36ff96
Switch to using the zeitwork autoloader
2020-12-30 20:30:21 +00:00
Tom Hughes
18b9b9f14c
Fix new rubocop warnings
2020-09-07 07:11:22 +01:00
Tom Hughes
e6667b7ff5
Fix rubocop warnings
2019-11-27 11:47:16 +00:00
Andy Allan
d130db9fa8
Avoid more models in old migrations
...
Although these migrations run fine today, they could break in the future
if changes are made to the current model code.
2019-07-17 12:16:20 +02:00
Tom Hughes
b606acba0c
Use rails 4.2 defaults for older migrations
2019-04-24 11:14:05 +01:00
Tom Hughes
29a780eb1a
Add rails version number to migrations
2017-10-17 18:49:55 +01:00
Tom Hughes
8dae890a76
Fix rubocop warnings
2017-10-05 19:18:38 +01:00
Tom Hughes
5b33f3f8e3
Fix rubocop warnings
2017-06-02 00:08:30 +01:00
Tom Hughes
dc2a2c8ebd
Standardise on double quoted strings
2015-02-20 19:47:26 +00:00
Tom Hughes
ef7f3d800c
Fix most auto-correctable rubocop issues
2015-02-20 08:56:16 +00:00
Tom Hughes
34e3e51456
Cleanup trailing whitespace
2015-02-20 08:56:16 +00:00
Tom Hughes
ac7bb003ec
Cleanup migrations
...
Cleanup our migrations, replacing as much of our custom code
and monkey patching with modern standard rails methods.
2015-01-11 12:53:01 +00:00
Tom Hughes
360333d37d
Modernise use of find and update_all in database migrations
2014-04-27 19:18:35 +01:00
Tom Hughes
3e99bbf5a9
Remove lib prefix from includes for ruby 1.9 compatibility
2012-01-05 20:33:19 +00:00
Tom Hughes
9bc483ad98
Only use the db functions for migrations if USE_DB_FUNCTIONS is set
...
in the environment. This could possibly be revisited when we move to
rails 2.3 by using a nested transaction to try the function without
causing the surrounding transaction to abort.
2009-05-27 15:25:28 +00:00
Tom Hughes
6785911619
Fix bogus casts - lat/lon are signed.
2009-05-08 08:10:28 +00:00
Andy Allan
4adeeb51ad
remove indexes before renaming tables (some dbs have database-level index namespaces) and unsigned is also a mysqlism
2008-11-09 19:30:22 +00:00
Andy Allan
fc9046ce6f
Moving AUTO_INCREMENTs to monkeypatching. Seems a bit hacky though
2008-11-08 16:47:02 +00:00
Tom Hughes
05602fc9d7
Fall back to adding tile numbers the hard way if the MySQL function is
...
not available.
2007-09-28 18:32:11 +00:00
Tom Hughes
cb71c6d57f
Add migration for quadtiling of node tables.
2007-09-23 13:42:56 +00:00