summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-04-14 18:46:18 -0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-04-14 18:46:18 -0300
commit70c9ceb7b1bd815f4a3e79a809a9279f841cee63 (patch)
tree1a9a264bea8a067f5f7c186808521cb400bc1a42 /db
parent95ce4d29c31770e2caf843face3b9f57a54d91f6 (diff)
downloadgitlab-ce-70c9ceb7b1bd815f4a3e79a809a9279f841cee63.tar.gz
Fix datetime format when migrating new notification settings on MySQL
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20160328115649_migrate_new_notification_setting.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/20160328115649_migrate_new_notification_setting.rb b/db/migrate/20160328115649_migrate_new_notification_setting.rb
index 0a110869027..3c81b2c37bf 100644
--- a/db/migrate/20160328115649_migrate_new_notification_setting.rb
+++ b/db/migrate/20160328115649_migrate_new_notification_setting.rb
@@ -7,7 +7,7 @@
#
class MigrateNewNotificationSetting < ActiveRecord::Migration
def up
- timestamp = Time.now
+ timestamp = Time.now.strftime('%F %T')
execute "INSERT INTO notification_settings ( user_id, source_id, source_type, level, created_at, updated_at ) SELECT user_id, source_id, source_type, notification_level, '#{timestamp}', '#{timestamp}' FROM members WHERE user_id IS NOT NULL"
end