summaryrefslogtreecommitdiff
path: root/db/migrate/20161223034646_create_timelogs_ce.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20161223034646_create_timelogs_ce.rb')
-rw-r--r--db/migrate/20161223034646_create_timelogs_ce.rb25
1 files changed, 0 insertions, 25 deletions
diff --git a/db/migrate/20161223034646_create_timelogs_ce.rb b/db/migrate/20161223034646_create_timelogs_ce.rb
deleted file mode 100644
index 489a2b35dfd..00000000000
--- a/db/migrate/20161223034646_create_timelogs_ce.rb
+++ /dev/null
@@ -1,25 +0,0 @@
-# rubocop:disable Migration/Timestamps
-class CreateTimelogsCe < ActiveRecord::Migration[4.2]
- include Gitlab::Database::MigrationHelpers
-
- DOWNTIME = false
-
- def up
- unless table_exists?(:timelogs)
- create_table :timelogs do |t|
- t.integer :time_spent, null: false
- t.references :trackable, polymorphic: true
- t.references :user
-
- t.timestamps null: false
- end
-
- add_index :timelogs, [:trackable_type, :trackable_id]
- add_index :timelogs, :user_id
- end
- end
-
- def down
- drop_table :timelogs if table_exists?(:timelogs)
- end
-end