From: Tom Clegg Date: Wed, 26 Jun 2013 02:31:48 +0000 (-0400) Subject: activate admin users created before is_active flag existed X-Git-Tag: 1.1.0~3163 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/17e5ba5f533353a7e27beaa75a5141697d9f32ae activate admin users created before is_active flag existed --- diff --git a/services/api/db/migrate/20130626022810_activate_all_admins.rb b/services/api/db/migrate/20130626022810_activate_all_admins.rb new file mode 100644 index 0000000000..c86530d5c8 --- /dev/null +++ b/services/api/db/migrate/20130626022810_activate_all_admins.rb @@ -0,0 +1,8 @@ +class ActivateAllAdmins < ActiveRecord::Migration + def up + User.update_all({is_active: true}, ['is_admin=?', true]) + end + + def down + end +end diff --git a/services/api/db/schema.rb b/services/api/db/schema.rb index 892afdbd36..c0b6597265 100644 --- a/services/api/db/schema.rb +++ b/services/api/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended to check this file into your version control system. -ActiveRecord::Schema.define(:version => 20130626002829) do +ActiveRecord::Schema.define(:version => 20130626022810) do create_table "api_client_authorizations", :force => true do |t| t.string "api_token", :null => false