openproject-meeting 3.0.2 → 3.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. checksums.yaml +9 -9
  2. data/CHANGELOG.md +28 -0
  3. data/README.md +3 -3
  4. data/app/assets/stylesheets/meeting/meeting.css.erb +19 -10
  5. data/app/controllers/meeting_agendas_controller.rb +11 -3
  6. data/app/controllers/meeting_contents_controller.rb +21 -7
  7. data/app/controllers/meeting_minutes_controller.rb +11 -3
  8. data/app/controllers/meetings_controller.rb +11 -3
  9. data/app/helpers/meeting_contents_helper.rb +11 -3
  10. data/app/helpers/meetings_helper.rb +17 -3
  11. data/app/mailers/meeting_mailer.rb +11 -3
  12. data/app/models/journal/meeting_content_journal.rb +40 -0
  13. data/app/models/journal/meeting_journal.rb +38 -0
  14. data/app/models/meeting.rb +17 -6
  15. data/app/models/meeting_agenda.rb +11 -66
  16. data/app/models/meeting_content.rb +30 -4
  17. data/app/models/meeting_minutes.rb +11 -67
  18. data/app/models/meeting_participant.rb +11 -3
  19. data/app/views/hooks/meetings/_activity_index_head.html.erb +21 -0
  20. data/app/views/meeting_contents/_form.html.erb +11 -3
  21. data/app/views/meeting_contents/_show.html.erb +11 -3
  22. data/app/views/meeting_contents/diff.html.erb +13 -6
  23. data/app/views/meeting_contents/history.html.erb +11 -3
  24. data/app/views/meeting_contents/show.html.erb +11 -3
  25. data/app/views/meeting_mailer/content_for_review.html.erb +11 -3
  26. data/app/views/meeting_mailer/content_for_review.text.erb +20 -0
  27. data/app/views/meetings/_form.html.erb +11 -3
  28. data/app/views/meetings/edit.html.erb +11 -3
  29. data/app/views/meetings/index.html.erb +11 -3
  30. data/app/views/meetings/new.html.erb +11 -3
  31. data/app/views/meetings/show.html.erb +12 -4
  32. data/app/views/shared/_meeting_header.html.erb +11 -3
  33. data/config/locales/de.yml +22 -0
  34. data/config/locales/en.yml +22 -0
  35. data/config/routes.rb +11 -3
  36. data/db/migrate/20110106210555_create_meetings.rb +11 -3
  37. data/db/migrate/20110106221214_create_meeting_contents.rb +11 -3
  38. data/db/migrate/20110106221946_create_meeting_content_versions.rb +11 -3
  39. data/db/migrate/20110108230721_create_meeting_participants.rb +11 -3
  40. data/db/migrate/20110224180804_add_lock_to_meeting_content.rb +11 -3
  41. data/db/migrate/20110819162852_create_initial_meeting_journals.rb +11 -3
  42. data/db/migrate/20111605171815_merge_meeting_content_versions_with_journals.rb +11 -3
  43. data/db/migrate/20130731151542_remove_meeting_role_id_from_meeting_participants.rb +11 -3
  44. data/db/migrate/20130822113942_create_meeting_journals.rb +39 -0
  45. data/db/migrate/20130924091342_legacy_meeting_journal_data.rb +36 -0
  46. data/db/migrate/20130924093842_legacy_meeting_agenda_journal_data.rb +62 -0
  47. data/db/migrate/20130924114042_legacy_meeting_minutes_journal_data.rb +62 -0
  48. data/doc/{COPYRIGHT.rdoc → COPYRIGHT.md} +1 -1
  49. data/doc/COPYRIGHT_short.md +16 -0
  50. data/lib/open_project/meeting.rb +11 -3
  51. data/lib/open_project/meeting/engine.rb +12 -4
  52. data/lib/open_project/meeting/hooks.rb +12 -4
  53. data/lib/open_project/meeting/patches/project_patch.rb +11 -3
  54. data/lib/open_project/meeting/version.rb +12 -4
  55. data/lib/openproject-meeting.rb +11 -3
  56. data/spec/controllers/meetings_controller_spec.rb +11 -3
  57. data/spec/factories/meeting_agenda_factory.rb +11 -3
  58. data/spec/factories/meeting_content_journal_factory.rb +23 -0
  59. data/spec/factories/meeting_factory.rb +11 -3
  60. data/spec/factories/meeting_journal_factory.rb +31 -0
  61. data/spec/factories/meeting_minutes_factory.rb +11 -3
  62. data/spec/factories/meeting_participant_factory.rb +11 -3
  63. data/spec/mailers/meeting_mailer_spec.rb +11 -3
  64. data/spec/models/meeting_agenda_spec.rb +14 -6
  65. data/spec/models/meeting_content_journal_spec.rb +30 -0
  66. data/spec/models/meeting_minutes_spec.rb +11 -3
  67. data/spec/models/meeting_spec.rb +11 -3
  68. data/spec/models/user_deletion_spec.rb +16 -14
  69. data/spec/spec_helper.rb +11 -3
  70. data/spec/support/plugin_spec_helper.rb +14 -22
  71. metadata +18 -13
  72. data/app/views/hooks/_activity_index_head.html.erb +0 -13
  73. data/spec/factories/meeting_agenda_journal_factory.rb +0 -18
  74. data/spec/factories/meeting_minutes_journal_factory.rb +0 -18
  75. data/spec/models/meeting_agenda_journal_spec.rb +0 -21
  76. data/spec/models/meeting_minutes_journal_spec.rb +0 -21
@@ -1,12 +1,20 @@
1
1
  <%#-- copyright
2
2
  OpenProject is a project management system.
3
-
4
- Copyright (C) 2011-2013 the OpenProject Team
3
+ Copyright (C) 2011-2013 the OpenProject Foundation (OPF)
5
4
 
6
5
  This program is free software; you can redistribute it and/or
7
6
  modify it under the terms of the GNU General Public License version 3.
8
7
 
9
- See doc/COPYRIGHT.rdoc for more details.
8
+ This program is distributed in the hope that it will be useful,
9
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ GNU General Public License for more details.
12
+
13
+ You should have received a copy of the GNU General Public License
14
+ along with this program; if not, write to the Free Software
15
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16
+
17
+ See doc/COPYRIGHT.md for more details.
10
18
 
11
19
  ++#%>
12
20
 
@@ -1,12 +1,20 @@
1
1
  <%#-- copyright
2
2
  OpenProject is a project management system.
3
-
4
- Copyright (C) 2011-2013 the OpenProject Team
3
+ Copyright (C) 2011-2013 the OpenProject Foundation (OPF)
5
4
 
6
5
  This program is free software; you can redistribute it and/or
7
6
  modify it under the terms of the GNU General Public License version 3.
8
7
 
9
- See doc/COPYRIGHT.rdoc for more details.
8
+ This program is distributed in the hope that it will be useful,
9
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ GNU General Public License for more details.
12
+
13
+ You should have received a copy of the GNU General Public License
14
+ along with this program; if not, write to the Free Software
15
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16
+
17
+ See doc/COPYRIGHT.md for more details.
10
18
 
11
19
  ++#%>
12
20
 
@@ -40,7 +48,7 @@ See doc/COPYRIGHT.rdoc for more details.
40
48
  <div id="history">
41
49
  <h3><%=l(:label_history)%></h3>
42
50
  <% @meeting.journals.each do |journal| %>
43
- <%= render_journal @meeting, journal %>
51
+ <%= render_meeting_journal @meeting, journal %>
44
52
  <% end %>
45
53
  </div>
46
54
  <% end %>
@@ -1,12 +1,20 @@
1
1
  <%#-- copyright
2
2
  OpenProject is a project management system.
3
-
4
- Copyright (C) 2011-2013 the OpenProject Team
3
+ Copyright (C) 2011-2013 the OpenProject Foundation (OPF)
5
4
 
6
5
  This program is free software; you can redistribute it and/or
7
6
  modify it under the terms of the GNU General Public License version 3.
8
7
 
9
- See doc/COPYRIGHT.rdoc for more details.
8
+ This program is distributed in the hope that it will be useful,
9
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ GNU General Public License for more details.
12
+
13
+ You should have received a copy of the GNU General Public License
14
+ along with this program; if not, write to the Free Software
15
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16
+
17
+ See doc/COPYRIGHT.md for more details.
10
18
 
11
19
  ++#%>
12
20
 
@@ -1,3 +1,22 @@
1
+ #-- copyright
2
+ # OpenProject is a project management system.
3
+ # Copyright (C) 2011-2013 the OpenProject Foundation (OPF)
4
+ #
5
+ # This program is free software; you can redistribute it and/or
6
+ # modify it under the terms of the GNU General Public License version 3.
7
+ #
8
+ # This program is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ # GNU General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU General Public License
14
+ # along with this program; if not, write to the Free Software
15
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16
+ #
17
+ # See doc/COPYRIGHT.md for more details.
18
+ #++
19
+
1
20
  # German strings go here for Rails i18n
2
21
  de:
3
22
  activerecord:
@@ -9,6 +28,9 @@ de:
9
28
  participants_attended: "Anwesend"
10
29
  participants_invited: "Eingeladen"
11
30
  start_time: "Anfangszeit"
31
+ models:
32
+ meeting_agenda: "Agenda"
33
+ meeting_minutes: "Protokoll"
12
34
 
13
35
  description_attended: "teilgenommen"
14
36
  description_invite: "eingeladen"
@@ -1,3 +1,22 @@
1
+ #-- copyright
2
+ # OpenProject is a project management system.
3
+ # Copyright (C) 2011-2013 the OpenProject Foundation (OPF)
4
+ #
5
+ # This program is free software; you can redistribute it and/or
6
+ # modify it under the terms of the GNU General Public License version 3.
7
+ #
8
+ # This program is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ # GNU General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU General Public License
14
+ # along with this program; if not, write to the Free Software
15
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16
+ #
17
+ # See doc/COPYRIGHT.md for more details.
18
+ #++
19
+
1
20
  # English strings go here for Rails i18n
2
21
  en:
3
22
  activerecord:
@@ -9,6 +28,9 @@ en:
9
28
  participants_attended: "Attendants"
10
29
  participants_invited: "Invitees"
11
30
  start_time: "Time"
31
+ models:
32
+ meeting_agenda: "Agenda"
33
+ meeting_minutes: "Minutes"
12
34
 
13
35
  description_attended: "attended"
14
36
  description_invite: "invited"
@@ -1,12 +1,20 @@
1
1
  #-- copyright
2
2
  # OpenProject is a project management system.
3
- #
4
- # Copyright (C) 2011-2013 the OpenProject Team
3
+ # Copyright (C) 2011-2013 the OpenProject Foundation (OPF)
5
4
  #
6
5
  # This program is free software; you can redistribute it and/or
7
6
  # modify it under the terms of the GNU General Public License version 3.
8
7
  #
9
- # See doc/COPYRIGHT.rdoc for more details.
8
+ # This program is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ # GNU General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU General Public License
14
+ # along with this program; if not, write to the Free Software
15
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16
+ #
17
+ # See doc/COPYRIGHT.md for more details.
10
18
  #++
11
19
 
12
20
  OpenProject::Application.routes.draw do
@@ -1,12 +1,20 @@
1
1
  #-- copyright
2
2
  # OpenProject is a project management system.
3
- #
4
- # Copyright (C) 2011-2013 the OpenProject Team
3
+ # Copyright (C) 2011-2013 the OpenProject Foundation (OPF)
5
4
  #
6
5
  # This program is free software; you can redistribute it and/or
7
6
  # modify it under the terms of the GNU General Public License version 3.
8
7
  #
9
- # See doc/COPYRIGHT.rdoc for more details.
8
+ # This program is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ # GNU General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU General Public License
14
+ # along with this program; if not, write to the Free Software
15
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16
+ #
17
+ # See doc/COPYRIGHT.md for more details.
10
18
  #++
11
19
 
12
20
  class CreateMeetings < ActiveRecord::Migration
@@ -1,12 +1,20 @@
1
1
  #-- copyright
2
2
  # OpenProject is a project management system.
3
- #
4
- # Copyright (C) 2011-2013 the OpenProject Team
3
+ # Copyright (C) 2011-2013 the OpenProject Foundation (OPF)
5
4
  #
6
5
  # This program is free software; you can redistribute it and/or
7
6
  # modify it under the terms of the GNU General Public License version 3.
8
7
  #
9
- # See doc/COPYRIGHT.rdoc for more details.
8
+ # This program is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ # GNU General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU General Public License
14
+ # along with this program; if not, write to the Free Software
15
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16
+ #
17
+ # See doc/COPYRIGHT.md for more details.
10
18
  #++
11
19
 
12
20
  class CreateMeetingContents < ActiveRecord::Migration
@@ -1,12 +1,20 @@
1
1
  #-- copyright
2
2
  # OpenProject is a project management system.
3
- #
4
- # Copyright (C) 2011-2013 the OpenProject Team
3
+ # Copyright (C) 2011-2013 the OpenProject Foundation (OPF)
5
4
  #
6
5
  # This program is free software; you can redistribute it and/or
7
6
  # modify it under the terms of the GNU General Public License version 3.
8
7
  #
9
- # See doc/COPYRIGHT.rdoc for more details.
8
+ # This program is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ # GNU General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU General Public License
14
+ # along with this program; if not, write to the Free Software
15
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16
+ #
17
+ # See doc/COPYRIGHT.md for more details.
10
18
  #++
11
19
 
12
20
  class CreateMeetingContentVersions < ActiveRecord::Migration
@@ -1,12 +1,20 @@
1
1
  #-- copyright
2
2
  # OpenProject is a project management system.
3
- #
4
- # Copyright (C) 2011-2013 the OpenProject Team
3
+ # Copyright (C) 2011-2013 the OpenProject Foundation (OPF)
5
4
  #
6
5
  # This program is free software; you can redistribute it and/or
7
6
  # modify it under the terms of the GNU General Public License version 3.
8
7
  #
9
- # See doc/COPYRIGHT.rdoc for more details.
8
+ # This program is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ # GNU General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU General Public License
14
+ # along with this program; if not, write to the Free Software
15
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16
+ #
17
+ # See doc/COPYRIGHT.md for more details.
10
18
  #++
11
19
 
12
20
  class CreateMeetingParticipants < ActiveRecord::Migration
@@ -1,12 +1,20 @@
1
1
  #-- copyright
2
2
  # OpenProject is a project management system.
3
- #
4
- # Copyright (C) 2011-2013 the OpenProject Team
3
+ # Copyright (C) 2011-2013 the OpenProject Foundation (OPF)
5
4
  #
6
5
  # This program is free software; you can redistribute it and/or
7
6
  # modify it under the terms of the GNU General Public License version 3.
8
7
  #
9
- # See doc/COPYRIGHT.rdoc for more details.
8
+ # This program is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ # GNU General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU General Public License
14
+ # along with this program; if not, write to the Free Software
15
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16
+ #
17
+ # See doc/COPYRIGHT.md for more details.
10
18
  #++
11
19
 
12
20
  class AddLockToMeetingContent < ActiveRecord::Migration
@@ -1,12 +1,20 @@
1
1
  #-- copyright
2
2
  # OpenProject is a project management system.
3
- #
4
- # Copyright (C) 2011-2013 the OpenProject Team
3
+ # Copyright (C) 2011-2013 the OpenProject Foundation (OPF)
5
4
  #
6
5
  # This program is free software; you can redistribute it and/or
7
6
  # modify it under the terms of the GNU General Public License version 3.
8
7
  #
9
- # See doc/COPYRIGHT.rdoc for more details.
8
+ # This program is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ # GNU General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU General Public License
14
+ # along with this program; if not, write to the Free Software
15
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16
+ #
17
+ # See doc/COPYRIGHT.md for more details.
10
18
  #++
11
19
 
12
20
  class CreateInitialMeetingJournals < ActiveRecord::Migration
@@ -1,12 +1,20 @@
1
1
  #-- copyright
2
2
  # OpenProject is a project management system.
3
- #
4
- # Copyright (C) 2011-2013 the OpenProject Team
3
+ # Copyright (C) 2011-2013 the OpenProject Foundation (OPF)
5
4
  #
6
5
  # This program is free software; you can redistribute it and/or
7
6
  # modify it under the terms of the GNU General Public License version 3.
8
7
  #
9
- # See doc/COPYRIGHT.rdoc for more details.
8
+ # This program is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ # GNU General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU General Public License
14
+ # along with this program; if not, write to the Free Software
15
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16
+ #
17
+ # See doc/COPYRIGHT.md for more details.
10
18
  #++
11
19
 
12
20
  class MergeMeetingContentVersionsWithJournals < ActiveRecord::Migration
@@ -1,12 +1,20 @@
1
1
  #-- copyright
2
2
  # OpenProject is a project management system.
3
- #
4
- # Copyright (C) 2011-2013 the OpenProject Team
3
+ # Copyright (C) 2011-2013 the OpenProject Foundation (OPF)
5
4
  #
6
5
  # This program is free software; you can redistribute it and/or
7
6
  # modify it under the terms of the GNU General Public License version 3.
8
7
  #
9
- # See doc/COPYRIGHT.rdoc for more details.
8
+ # This program is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ # GNU General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU General Public License
14
+ # along with this program; if not, write to the Free Software
15
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16
+ #
17
+ # See doc/COPYRIGHT.md for more details.
10
18
  #++
11
19
 
12
20
  class RemoveMeetingRoleIdFromMeetingParticipants < ActiveRecord::Migration
@@ -0,0 +1,39 @@
1
+ #-- copyright
2
+ # OpenProject is a project management system.
3
+ # Copyright (C) 2011-2013 the OpenProject Foundation (OPF)
4
+ #
5
+ # This program is free software; you can redistribute it and/or
6
+ # modify it under the terms of the GNU General Public License version 3.
7
+ #
8
+ # This program is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ # GNU General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU General Public License
14
+ # along with this program; if not, write to the Free Software
15
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16
+ #
17
+ # See doc/COPYRIGHT.md for more details.
18
+ #++
19
+ class CreateMeetingJournals < ActiveRecord::Migration
20
+ def change
21
+ create_table :meeting_journals do |t|
22
+ t.integer :journal_id, :null => false
23
+ t.string :title
24
+ t.integer :author_id
25
+ t.integer :project_id
26
+ t.string :location
27
+ t.datetime :start_time
28
+ t.float :duration
29
+ end
30
+
31
+ create_table :meeting_content_journals do |t|
32
+ t.integer :journal_id, :null => false
33
+ t.integer :meeting_id
34
+ t.integer :author_id
35
+ t.text :text
36
+ t.boolean :locked
37
+ end
38
+ end
39
+ end
@@ -0,0 +1,36 @@
1
+ #-- encoding: UTF-8
2
+ #-- copyright
3
+ # OpenProject is a project management system.
4
+ # Copyright (C) 2011-2013 the OpenProject Foundation (OPF)
5
+ #
6
+ # This program is free software; you can redistribute it and/or
7
+ # modify it under the terms of the GNU General Public License version 3.
8
+ #
9
+ # This program is distributed in the hope that it will be useful,
10
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
+ # GNU General Public License for more details.
13
+ #
14
+ # You should have received a copy of the GNU General Public License
15
+ # along with this program; if not, write to the Free Software
16
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17
+ #
18
+ # See doc/COPYRIGHT.md for more details.
19
+ #++
20
+ #
21
+
22
+ require_relative 'migration_utils/legacy_journal_migrator'
23
+
24
+ class LegacyMeetingJournalData < ActiveRecord::Migration
25
+ def up
26
+ migrator.run
27
+ end
28
+
29
+ def down
30
+ migrator.remove_journals_derived_from_legacy_journals 'meeting_journals'
31
+ end
32
+
33
+ def migrator
34
+ @migrator ||= Migration::LegacyJournalMigrator.new "MeetingJournal", "meeting_journals"
35
+ end
36
+ end