Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20170427215854_create_redirect_routes.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6db508e5db452b3ecdc8fbee7b0a54c491dd3ef3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# rubocop:disable Migration/Timestamps
class CreateRedirectRoutes < ActiveRecord::Migration
  # Set this constant to true if this migration requires downtime.
  DOWNTIME = false

  def change
    create_table :redirect_routes do |t|
      t.integer :source_id, null: false
      t.string :source_type, null: false
      t.string :path, null: false

      t.timestamps null: false
    end
  end
end