Sam
6a3c8fe69c
FEATURE: protect against accidental column or table drops
...
Often we need to amend our schema, it is tempting to use
drop_table, rename_column and drop_column to amned schema
trouble though is that existing code that is running in production
can depend on the existance of previous schema leading to application
breaking until new code base is deployed.
The commit enforces new rules to ensure we can never drop tables or
columns in migrations and instead use Migration::ColumnDropper and
Migration::TableDropper to defer drop the db objects
2018-03-21 15:43:32 +11:00
Guo Xiang Tan
5012d46cbd
Add rubocop to our build. ( #5004 )
2017-07-28 10:20:09 +09:00
Guo Xiang Tan
26b5981f19
Fix typo.
2017-06-06 12:10:51 +09:00
Guo Xiang Tan
08cf7495da
Delaying dropping topic auto close columns by one hour.
2017-06-06 12:07:31 +09:00
Guo Xiang Tan
1c05ca91ea
Remove columns that are no longer being used.
2017-06-05 10:59:05 +09:00
Sam
0aed2533ac
Revert unread optimisation, has too many edge cases
2017-05-26 09:04:13 -04:00
Sam
7a15b44ac3
rename on_remove, on_drop
2017-05-04 14:03:17 -04:00
Sam
6a6eed4ed2
DEV: column dropper class for cleaner removal of superflous columns
...
Also fixes issues during deploy cause target column was renamed in
theme_fields
2017-05-04 10:15:41 -04:00
Régis Hanol
49dda1e025
Merge pull request #4628 from caugner/move-welcome-topic-to-i18n
...
FIX: Move Welcome topic to I18n
2016-12-27 10:31:03 +01:00
Claas Augner
e129e656d1
FIX: Move Welcome topic to I18n
2016-12-26 16:03:07 +01:00
Claas Augner
59c04d0f37
FIX: Add assets_topic_title to I18n
2016-12-26 15:38:48 +01:00
Sam
1db9d17756
Make removal of topic columns more resilient to deploys
2016-12-05 12:11:46 +11:00
Robin Ward
5e93140f85
FEATURE: Can override any translation via an admin interface
2015-11-27 11:35:19 -05:00
Neil Lalonde
f1637fc11e
FEATURE: plugins can register a custom admin quick start topic that will be seeded into new sites
2015-06-04 15:56:17 -04:00
Neil Lalonde
5f2c746853
remove unused site settings company_domain, company_full_name, company_name
2014-12-03 15:39:53 -05:00
Robin Ward
bc53d48bd7
Renaming site contents to site text
2014-09-24 16:08:14 -04:00
Jeff Atwood
d09b30775c
better copy on a few default topics
2014-08-18 01:51:44 -07:00
Neil Lalonde
eaafbccb53
Seed the Admin Quick Start Guide topic last so it appears as the newest topic
2014-07-29 14:30:32 -04:00
Neil Lalonde
81ff121fe8
FIX: length error when seeding legal docs on a site with a low max post length
2014-07-28 16:40:14 -04:00
Neil Lalonde
5a33e6f00c
Move FAQ, Terms of Service, and Privacy Policy into topics in the Staff category. First post of those topics will be rendered on their respective pages. Site settings and content are not used for these documents anymore. Translations of the default text is moved into the standard YML files.
2014-07-25 14:41:20 -04:00
Neil Lalonde
fd55a3fd66
FEATURE: add a welcome topic to the Lounge category. Copy needs to be improved.
2014-07-10 15:13:18 -04:00
Louis Rose
1574485443
Perform the where(...).first to find_by(...) refactoring.
...
This refactoring was automated using the command: bundle exec "ruby refactorings/where_dot_first_to_find_by/app.rb"
2014-05-06 14:41:59 +01:00
Neil Lalonde
93c3ec2a54
FIX: welcome topic needs to be pinned globally
2014-05-05 10:47:52 -04:00
Jeff Atwood
3b02257edb
better admin quick start guide
2014-04-16 00:13:52 -07:00
Neil Lalonde
ec7ef21403
Add a Staff category. Have a topic for assets in the Staff category. Move admin quick start guide to Staff category. Quick start guide is not invisible anymore.
2014-02-27 17:38:20 -05:00
Neil Lalonde
fdcd3c20b6
Admin Quick Start Guide topic is visible only to staff in new sites
2014-02-25 10:35:37 -05:00
Neil Lalonde
3690a24f7f
FIX: welcome topic should be uncategorized
2014-02-24 14:27:29 -05:00
Sam
04f1a5c3f8
FEATURE: added welcome to discourse topic
2014-02-04 13:21:43 +11:00
Neil Lalonde
714a40313d
Don't seed a welcome topic on every db:migrate
2014-01-23 16:42:03 -05:00
Sam
f59c223210
BUGFIX: not seeding welcome topic
2014-01-23 22:59:53 +11:00
Sam
820e29e30e
don't seed welcome topic in test db
2013-12-16 12:48:45 +11:00
Sam
8ad78dcce2
added quick start guide to seeds
2013-12-16 12:46:46 +11:00