2017-06-13 11:44:13 +00:00
|
|
|
# rubocop:disable Migration/Timestamps
|
2017-05-01 20:46:30 +00:00
|
|
|
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
|