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: 2bf086b3e30fcfdaea571ee6b22e8c241ece4359 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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