Jan Provaznik
0fc9f9d3e7
Add version 4.2 to all existing migrations
...
DB schema generated by a migration may look different in
rails 4 and 5 (because rails 5 may use different default values).
For this reason it's important to explicitly set for which rails
version a migration was written for.
See https://stackoverflow.com/questions/35929869/activerecordmigration-deprecation-warning-asks-for-rails-version-but-im-no/35930912#35930912
2018-11-22 13:18:28 +01:00
Stan Hu
b5c706326a
Upgrade to Ruby 2.4.4
...
Fixes that make this work:
* A change in Ruby (ce635262f5
)
requires passing in the exact required length for OpenSSL keys and IVs.
* Ensure the secrets.yml is generated before any prepended modules are
loaded. This is done by renaming the `secret_token.rb` initializer to
`01_secret_token.rb`, which is a bit ugly but involves the least impact on
other files.
2018-05-29 15:19:33 -07:00
James Lopez
457adb942c
prevent algorithm and key length issue for upgrades from an older GilLab version - 8.6 or earlier
2016-07-20 12:08:52 +02:00
Sean McGivern
98bb435f42
Enable RuboCop for migrations
...
Migrations shouldn't fail RuboCop checks - especially lint checks, such
as the nested method check. To avoid changing code in existing
migrations, add the magic comment to the top of each of them to skip
that file.
2016-06-09 16:05:25 +01:00
James Lopez
e60d5f9188
fix rescue block on migration
2016-05-27 17:20:15 +02:00
Rubén Dávila
0c47b68d04
Mask credentials from URL when import of project has failed.
2016-05-18 21:16:36 -05:00
James Lopez
efff7e9e54
updated migration based on testing findings
2016-04-14 12:03:45 +02:00
James Lopez
fb63173df2
typo
2016-04-11 11:28:35 +02:00
James Lopez
be834c4de9
changed a few things based on feedback
2016-04-11 11:13:51 +02:00
James Lopez
5e51fce4dc
some refactoring to symbolise keys across importers and left a TODO
2016-04-05 15:41:15 +02:00
James Lopez
4835e680a4
fix migration issue
2016-04-04 19:55:13 +02:00
James Lopez
172d37a238
fix wording
2016-04-04 19:45:53 +02:00
James Lopez
288d8e6698
fixes based on MR review
2016-04-04 18:03:55 +02:00
James Lopez
ef85c510fa
corrected a couple of based on MR review
2016-04-04 09:57:52 +02:00
James Lopez
459ad34493
refactored code based on feedback plus fixed a couple of other issues
2016-03-28 16:35:03 +02:00
James Lopez
cc4d04f97f
added rest of importers, fixed specs and some issues with the migration
2016-03-23 17:57:10 +01:00
James Lopez
6967871fc5
fogbugz importer, also refactored migration again to make it easier to add new importers
2016-03-23 12:52:50 +01:00
James Lopez
8da04f6b64
refactored migration a bit and fixed a few problems. Also added some logging
2016-03-23 11:55:43 +01:00
James Lopez
23146fca18
update bitbucket importer
2016-03-22 12:25:28 +01:00
James Lopez
1b8d995492
refactoring migration to add bitbucket stuff
2016-03-22 11:32:15 +01:00
James Lopez
868e4918f9
updated migration
2016-03-21 18:38:06 +01:00
James Lopez
6dfb5d7cad
remove byebug
2016-03-21 17:34:20 +01:00
James Lopez
bd8a77674f
fixed few issues with the migration
2016-03-21 17:16:27 +01:00
James Lopez
030b139445
more refactoring
2016-03-21 15:11:05 +01:00
James Lopez
383cc84047
some refactoring based on feedback
2016-03-21 13:15:51 +01:00
James Lopez
735563329d
refactored a bunch of stuff based on MR feedback
2016-03-07 12:50:35 +01:00
James Lopez
06b36c00d5
some refactoring in the migration. Also fixed github import issue and updated spec
2016-03-04 12:21:53 +01:00
James Lopez
cefefb2ade
WIP - refactored migration and updated project_import_data with encrypted att
2016-03-03 18:10:06 +01:00
James Lopez
1841164550
add initial migrations
2016-03-02 17:31:17 +01:00