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: 069c9b39d37050f342d56a5223b86e663ff6577e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# rubocop:disable Migration/Timestamps
class CreateRedirectRoutes < ActiveRecord::Migration[4.2]
  # 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