Tom Hughes
eada36ff96
Switch to using the zeitwork autoloader
2020-12-30 20:30:21 +00:00
Tom Hughes
e6667b7ff5
Fix rubocop warnings
2019-11-27 11:47:16 +00:00
Andy Allan
6ebb21b660
Avoid using live models in old migrations
...
Instead, we define models in the migrations themselves. This ensures that
column names etc match the state of the database during the migration,
not the current live version of the model.
2019-07-17 11:52:02 +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
5b33f3f8e3
Fix rubocop warnings
2017-06-02 00:08:30 +01:00
Tom Hughes
febff23c2c
Fix deprecation warnings in migrations
2015-12-21 16:11:02 +00: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
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
4708992f1c
Don't bother creating the user index on user_roles as migration 48 will
...
create one on user+role that will do the same job.
Removing it here is a bit of a hack as it will not get dropped from
existing databases but as it was not given an explicit name it is hard
to write a migration to drop it.
2009-10-01 20:04:33 +00:00
Matt Amos
daa2496024
First version of blocking feature. Allows both time-based (for map protection) and notice-based (for education) blocks on users. Also introduces user roles and a simple UI for displaying and administering these.
2009-09-28 16:01:00 +00:00