diff options
author | Heinrich Lee Yu <heinrich@gitlab.com> | 2019-06-11 13:40:01 +0300 |
---|---|---|
committer | Heinrich Lee Yu <heinrich@gitlab.com> | 2019-06-25 04:31:23 +0300 |
commit | 275a17589c2d468d8671a9f754a50b212273d509 (patch) | |
tree | fb491229331aa09e74fd14385b0682e693774395 /db | |
parent | 4e283ee706b11fd3b918230976addc9a70603ce6 (diff) |
Rename to time_tracking_limit_to_hours
Changes migration and all other places the attribute is used
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20190611090827_add_time_tracking_limit_to_hours_to_application_settings.rb (renamed from db/migrate/20190611090827_add_time_tracking_display_hours_only_to_application_settings.rb) | 6 | ||||
-rw-r--r-- | db/schema.rb | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/db/migrate/20190611090827_add_time_tracking_display_hours_only_to_application_settings.rb b/db/migrate/20190611090827_add_time_tracking_limit_to_hours_to_application_settings.rb index f4daf0d1863..a5f8925c1db 100644 --- a/db/migrate/20190611090827_add_time_tracking_display_hours_only_to_application_settings.rb +++ b/db/migrate/20190611090827_add_time_tracking_limit_to_hours_to_application_settings.rb @@ -3,7 +3,7 @@ # See http://doc.gitlab.com/ce/development/migration_style_guide.html # for more information on how to write migrations for GitLab. -class AddTimeTrackingDisplayHoursOnlyToApplicationSettings < ActiveRecord::Migration[5.1] +class AddTimeTrackingLimitToHoursToApplicationSettings < ActiveRecord::Migration[5.1] include Gitlab::Database::MigrationHelpers # Set this constant to true if this migration requires downtime. @@ -12,10 +12,10 @@ class AddTimeTrackingDisplayHoursOnlyToApplicationSettings < ActiveRecord::Migra disable_ddl_transaction! def up - add_column_with_default :application_settings, :time_tracking_display_hours_only, :boolean, default: false, allow_null: false + add_column_with_default :application_settings, :time_tracking_limit_to_hours, :boolean, default: false, allow_null: false end def down - remove_column :application_settings, :time_tracking_display_hours_only + remove_column :application_settings, :time_tracking_limit_to_hours end end diff --git a/db/schema.rb b/db/schema.rb index d39833f9755..44213fddd86 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -229,7 +229,7 @@ ActiveRecord::Schema.define(version: 20190620112608) do t.integer "custom_project_templates_group_id" t.boolean "elasticsearch_limit_indexing", default: false, null: false t.string "geo_node_allowed_ips", default: "0.0.0.0/0, ::/0" - t.boolean "time_tracking_display_hours_only", default: false, null: false + t.boolean "time_tracking_limit_to_hours", default: false, null: false t.index ["custom_project_templates_group_id"], name: "index_application_settings_on_custom_project_templates_group_id", using: :btree t.index ["file_template_project_id"], name: "index_application_settings_on_file_template_project_id", using: :btree t.index ["usage_stats_set_by_user_id"], name: "index_application_settings_on_usage_stats_set_by_user_id", using: :btree |