diff options
author | Stan Hu <stanhu@gmail.com> | 2018-07-12 05:21:37 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-07-12 05:21:37 -0700 |
commit | 2d3fd6a142d286bb7d6355ed3601e618bc246112 (patch) | |
tree | 1b1c99150ac063d3d3e90583ce7b3c657e93ad5a /config | |
parent | bb98ed112c509c6265ba4dff81d7987c52a8748c (diff) | |
parent | eddf34f4af8a2cfdcea2586a91b0fc38a7ba0277 (diff) | |
download | gitlab-ce-2d3fd6a142d286bb7d6355ed3601e618bc246112.tar.gz |
Merge branch 'master' into sh-support-bitbucket-server-import
Diffstat (limited to 'config')
-rw-r--r-- | config/initializers/active_record_table_definition.rb | 5 | ||||
-rw-r--r-- | config/routes/import.rb | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/config/initializers/active_record_table_definition.rb b/config/initializers/active_record_table_definition.rb index 8e3a1c7a62f..a71069f27a3 100644 --- a/config/initializers/active_record_table_definition.rb +++ b/config/initializers/active_record_table_definition.rb @@ -29,6 +29,11 @@ module ActiveRecord def datetime_with_timezone(column_name, **options) column(column_name, :datetime_with_timezone, options) end + + # Disable timestamp alias to datetime + def aliased_types(name, fallback) + fallback + end end end end diff --git a/config/routes/import.rb b/config/routes/import.rb index be3058193d5..3998d977c81 100644 --- a/config/routes/import.rb +++ b/config/routes/import.rb @@ -52,4 +52,10 @@ namespace :import do resource :gitlab_project, only: [:create, :new] do post :create end + + resource :manifest, only: [:create, :new], controller: :manifest do + get :status + get :jobs + post :upload + end end |