Make the downtime_check task happy
Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
parent
2c0d9890e6
commit
a59e75a17f
22 changed files with 47 additions and 3 deletions
|
@ -1,5 +1,7 @@
|
|||
# rubocop:disable all
|
||||
class CreateForkedProjectLinks < ActiveRecord::Migration
|
||||
DOWNTIME = false
|
||||
|
||||
def change
|
||||
create_table :forked_project_links do |t|
|
||||
t.integer :forked_to_project_id, null: false
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
# rubocop:disable all
|
||||
class CreateDeployKeysProjects < ActiveRecord::Migration
|
||||
DOWNTIME = false
|
||||
|
||||
def change
|
||||
create_table :deploy_keys_projects do |t|
|
||||
t.integer :deploy_key_id, null: false
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
# rubocop:disable all
|
||||
class CreateUsersGroups < ActiveRecord::Migration
|
||||
DOWNTIME = false
|
||||
|
||||
def change
|
||||
create_table :users_groups do |t|
|
||||
t.integer :group_access, null: false
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
# rubocop:disable all
|
||||
class CreateProjectGroupLinks < ActiveRecord::Migration
|
||||
DOWNTIME = false
|
||||
|
||||
def change
|
||||
create_table :project_group_links do |t|
|
||||
t.integer :project_id, null: false
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
# rubocop:disable all
|
||||
class CreateBroadcastMessages < ActiveRecord::Migration
|
||||
DOWNTIME = false
|
||||
|
||||
def change
|
||||
create_table :broadcast_messages do |t|
|
||||
t.text :message, null: false
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
# rubocop:disable all
|
||||
class CreateMergeRequestDiffs < ActiveRecord::Migration
|
||||
DOWNTIME = false
|
||||
|
||||
def up
|
||||
create_table :merge_request_diffs do |t|
|
||||
t.string :state, null: false, default: 'collected'
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
# rubocop:disable all
|
||||
class CreateEmails < ActiveRecord::Migration
|
||||
DOWNTIME = false
|
||||
|
||||
def change
|
||||
create_table :emails do |t|
|
||||
t.integer :user_id, null: false
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
# rubocop:disable all
|
||||
class CreateUsersStarProjects < ActiveRecord::Migration
|
||||
DOWNTIME = false
|
||||
|
||||
def change
|
||||
create_table :users_star_projects do |t|
|
||||
t.integer :project_id, null: false
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
# rubocop:disable all
|
||||
class CreateLabels < ActiveRecord::Migration
|
||||
DOWNTIME = false
|
||||
|
||||
def change
|
||||
create_table :labels do |t|
|
||||
t.string :title
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
# rubocop:disable all
|
||||
class CreateLabelLinks < ActiveRecord::Migration
|
||||
DOWNTIME = false
|
||||
|
||||
def change
|
||||
create_table :label_links do |t|
|
||||
t.integer :label_id
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
# rubocop:disable all
|
||||
class AddMembersTable < ActiveRecord::Migration
|
||||
DOWNTIME = false
|
||||
|
||||
def change
|
||||
create_table :members do |t|
|
||||
t.integer :access_level, null: false
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
# rubocop:disable all
|
||||
class RemoveOldMemberTables < ActiveRecord::Migration
|
||||
DOWNTIME = false
|
||||
|
||||
def up
|
||||
drop_table :users_groups
|
||||
drop_table :users_projects
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
# rubocop:disable all
|
||||
class AddAuditEvent < ActiveRecord::Migration
|
||||
DOWNTIME = false
|
||||
|
||||
def change
|
||||
create_table :audit_events do |t|
|
||||
t.integer :author_id, null: false
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
# rubocop:disable all
|
||||
class CreateDoorkeeperTables < ActiveRecord::Migration
|
||||
DOWNTIME = false
|
||||
|
||||
def change
|
||||
create_table :oauth_applications do |t|
|
||||
t.string :name, null: false
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
# rubocop:disable all
|
||||
class CreateApplicationSettings < ActiveRecord::Migration
|
||||
DOWNTIME = false
|
||||
|
||||
def change
|
||||
create_table :application_settings do |t|
|
||||
t.integer :default_projects_limit
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
# rubocop:disable all
|
||||
class CreateSubscriptionsTable < ActiveRecord::Migration
|
||||
DOWNTIME = false
|
||||
|
||||
def change
|
||||
create_table :subscriptions do |t|
|
||||
t.integer :user_id
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
# rubocop:disable all
|
||||
class CreateAbuseReports < ActiveRecord::Migration
|
||||
DOWNTIME = false
|
||||
|
||||
def change
|
||||
create_table :abuse_reports do |t|
|
||||
t.integer :reporter_id
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
# rubocop:disable all
|
||||
class CreateLfsObjects < ActiveRecord::Migration
|
||||
DOWNTIME = false
|
||||
|
||||
def change
|
||||
create_table :lfs_objects do |t|
|
||||
t.string :oid, null: false, unique: true
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
# rubocop:disable all
|
||||
class CreateLfsObjectsProjects < ActiveRecord::Migration
|
||||
DOWNTIME = false
|
||||
|
||||
def change
|
||||
create_table :lfs_objects_projects do |t|
|
||||
t.integer :lfs_object_id, null: false
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
# rubocop:disable all
|
||||
class CreateReleases < ActiveRecord::Migration
|
||||
DOWNTIME = false
|
||||
|
||||
def change
|
||||
create_table :releases do |t|
|
||||
t.string :tag
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
# rubocop:disable all
|
||||
class CreateTasks < ActiveRecord::Migration
|
||||
DOWNTIME = false
|
||||
|
||||
def change
|
||||
create_table :tasks do |t|
|
||||
t.references :user, null: false, index: true
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
# rubocop:disable all
|
||||
class AddAwardEmoji < ActiveRecord::Migration
|
||||
DOWNTIME = false
|
||||
|
||||
def change
|
||||
create_table :award_emoji do |t|
|
||||
t.string :name
|
||||
|
|
Loading…
Reference in a new issue