Showing
47 changed files
with
47 additions
and
47 deletions
| 1 | -class CreateDelayedJobs < ActiveRecord::Migration | 1 | +class CreateDelayedJobs < ActiveRecord::Migration[5.2] |
| 2 | def self.up | 2 | def self.up |
| 3 | create_table :delayed_jobs, force: true do |table| | 3 | create_table :delayed_jobs, force: true do |table| |
| 4 | table.integer :priority, default: 0, null: false # Allows some jobs to jump to the front of the queue | 4 | table.integer :priority, default: 0, null: false # Allows some jobs to jump to the front of the queue |
| 1 | -class ChangeColumnParentIdToPages < ActiveRecord::Migration | 1 | +class ChangeColumnParentIdToPages < ActiveRecord::Migration[5.2] |
| 2 | def change | 2 | def change |
| 3 | change_column :kanjai_pages, :parent_id, :integer, :default => 0 | 3 | change_column :kanjai_pages, :parent_id, :integer, :default => 0 |
| 4 | end | 4 | end |
| 1 | -class ChangeColumnParentIdToPages3 < ActiveRecord::Migration | 1 | +class ChangeColumnParentIdToPages3 < ActiveRecord::Migration[5.2] |
| 2 | def change | 2 | def change |
| 3 | change_column :kanjai_pages, :parent_id, :integer, :default => nil | 3 | change_column :kanjai_pages, :parent_id, :integer, :default => nil |
| 4 | end | 4 | end |
| 1 | -class AddPageIdAndLangToPageDatas < ActiveRecord::Migration | 1 | +class AddPageIdAndLangToPageDatas < ActiveRecord::Migration[5.2] |
| 2 | def change | 2 | def change |
| 3 | add_column :kanjai_page_data, :page_id, :integer | 3 | add_column :kanjai_page_data, :page_id, :integer |
| 4 | add_column :kanjai_page_data, :lang, :text | 4 | add_column :kanjai_page_data, :lang, :text |
| 1 | -class RemoveSomeFieldFromPages < ActiveRecord::Migration | 1 | +class RemoveSomeFieldFromPages < ActiveRecord::Migration[5.2] |
| 2 | def change | 2 | def change |
| 3 | remove_column :kanjai_pages, :title | 3 | remove_column :kanjai_pages, :title |
| 4 | remove_column :kanjai_pages, :markdown | 4 | remove_column :kanjai_pages, :markdown |
| 1 | -class AddDefaultUseToPageLangs < ActiveRecord::Migration | 1 | +class AddDefaultUseToPageLangs < ActiveRecord::Migration[5.2] |
| 2 | def change | 2 | def change |
| 3 | add_column :kanjai_page_langs, :default_use, :boolean, :default => false | 3 | add_column :kanjai_page_langs, :default_use, :boolean, :default => false |
| 4 | end | 4 | end |
| 1 | -class RenameTemplateIdInPages < ActiveRecord::Migration | 1 | +class RenameTemplateIdInPages < ActiveRecord::Migration[5.2] |
| 2 | def change | 2 | def change |
| 3 | remove_column :kanjai_pages, :template_id | 3 | remove_column :kanjai_pages, :template_id |
| 4 | add_column :kanjai_pages, :page_template_id, :integer | 4 | add_column :kanjai_pages, :page_template_id, :integer |
| 1 | -class AddMetaFieldToPageData < ActiveRecord::Migration | 1 | +class AddMetaFieldToPageData < ActiveRecord::Migration[5.2] |
| 2 | def change | 2 | def change |
| 3 | add_column :kanjai_page_data, :meta_title, :text | 3 | add_column :kanjai_page_data, :meta_title, :text |
| 4 | add_column :kanjai_page_data, :meta_description, :text | 4 | add_column :kanjai_page_data, :meta_description, :text |
| 1 | -class CreateKanjaiTemplateParts < ActiveRecord::Migration | 1 | +class CreateKanjaiTemplateParts < ActiveRecord::Migration[5.2] |
| 2 | def change | 2 | def change |
| 3 | create_table :kanjai_template_parts do |t| | 3 | create_table :kanjai_template_parts do |t| |
| 4 | t.references :page_template | 4 | t.references :page_template |
| 1 | -class RenameTypeForTemplateParts < ActiveRecord::Migration | 1 | +class RenameTypeForTemplateParts < ActiveRecord::Migration[5.2] |
| 2 | def change | 2 | def change |
| 3 | add_column :kanjai_template_parts, :part_type, :string | 3 | add_column :kanjai_template_parts, :part_type, :string |
| 4 | remove_column :kanjai_template_parts, :type | 4 | remove_column :kanjai_template_parts, :type |
| 1 | -class AddTypeContentToPageContents < ActiveRecord::Migration | 1 | +class AddTypeContentToPageContents < ActiveRecord::Migration[5.2] |
| 2 | def change | 2 | def change |
| 3 | add_column :kanjai_page_contents, :type_content, :string, default: 'rte_editor' | 3 | add_column :kanjai_page_contents, :type_content, :string, default: 'rte_editor' |
| 4 | end | 4 | end |
| 1 | -class CreateKanjaiPageContentMarkers < ActiveRecord::Migration | 1 | +class CreateKanjaiPageContentMarkers < ActiveRecord::Migration[5.2] |
| 2 | def change | 2 | def change |
| 3 | create_table :kanjai_page_content_markers do |t| | 3 | create_table :kanjai_page_content_markers do |t| |
| 4 | t.references :page_content | 4 | t.references :page_content |
| 1 | -class AddRowItemToPageContentMarkers < ActiveRecord::Migration | 1 | +class AddRowItemToPageContentMarkers < ActiveRecord::Migration[5.2] |
| 2 | def change | 2 | def change |
| 3 | add_column :kanjai_page_content_markers, :row_item, :integer, :default => 0 | 3 | add_column :kanjai_page_content_markers, :row_item, :integer, :default => 0 |
| 4 | end | 4 | end |
| 1 | -class AddControllerInformationToPageContents < ActiveRecord::Migration | 1 | +class AddControllerInformationToPageContents < ActiveRecord::Migration[5.2] |
| 2 | def change | 2 | def change |
| 3 | add_column :kanjai_page_contents, :controller_name, :string | 3 | add_column :kanjai_page_contents, :controller_name, :string |
| 4 | add_column :kanjai_page_contents, :action_name, :string | 4 | add_column :kanjai_page_contents, :action_name, :string |
| 1 | -class AddDefaultPrivatePageFlatToPages < ActiveRecord::Migration | 1 | +class AddDefaultPrivatePageFlatToPages < ActiveRecord::Migration[5.2] |
| 2 | def change | 2 | def change |
| 3 | add_column :kanjai_pages, :default_private_page, :boolean, default: false | 3 | add_column :kanjai_pages, :default_private_page, :boolean, default: false |
| 4 | end | 4 | end |
| 1 | -class AddObjectIdAndTypeToPageContentMarker < ActiveRecord::Migration | 1 | +class AddObjectIdAndTypeToPageContentMarker < ActiveRecord::Migration[5.2] |
| 2 | def change | 2 | def change |
| 3 | add_column :kanjai_page_content_markers, :reference_id, :integer | 3 | add_column :kanjai_page_content_markers, :reference_id, :integer |
| 4 | add_column :kanjai_page_content_markers, :reference_type, :string | 4 | add_column :kanjai_page_content_markers, :reference_type, :string |
| 1 | -class AddMarkerTypeAndMarkerNameToPageContentMarkers < ActiveRecord::Migration | 1 | +class AddMarkerTypeAndMarkerNameToPageContentMarkers < ActiveRecord::Migration[5.2] |
| 2 | def change | 2 | def change |
| 3 | add_column :kanjai_page_content_markers, :marker_type, :string | 3 | add_column :kanjai_page_content_markers, :marker_type, :string |
| 4 | add_column :kanjai_page_content_markers, :marker_name, :string | 4 | add_column :kanjai_page_content_markers, :marker_name, :string |
| 1 | -class CreateKanjaiTemplateStatics < ActiveRecord::Migration | 1 | +class CreateKanjaiTemplateStatics < ActiveRecord::Migration[5.2] |
| 2 | def change | 2 | def change |
| 3 | create_table :kanjai_template_statics do |t| | 3 | create_table :kanjai_template_statics do |t| |
| 4 | t.references :page_template | 4 | t.references :page_template |
| 1 | -class AddShowPublicOnlyToKanjaiPages < ActiveRecord::Migration | 1 | +class AddShowPublicOnlyToKanjaiPages < ActiveRecord::Migration[5.2] |
| 2 | def change | 2 | def change |
| 3 | add_column :kanjai_pages, :show_public_only, :boolean, default: false | 3 | add_column :kanjai_pages, :show_public_only, :boolean, default: false |
| 4 | end | 4 | end |
| 1 | -class AddFormDataToPageContentMarker < ActiveRecord::Migration | 1 | +class AddFormDataToPageContentMarker < ActiveRecord::Migration[5.2] |
| 2 | def change | 2 | def change |
| 3 | add_column :kanjai_page_content_markers, :form_subject, :text | 3 | add_column :kanjai_page_content_markers, :form_subject, :text |
| 4 | add_column :kanjai_page_content_markers, :form_body, :text | 4 | add_column :kanjai_page_content_markers, :form_body, :text |
| 1 | -class AddFromToMaiToPageContentMarker < ActiveRecord::Migration | 1 | +class AddFromToMaiToPageContentMarker < ActiveRecord::Migration[5.2] |
| 2 | def change | 2 | def change |
| 3 | add_column :kanjai_page_content_markers, :from_mail, :string | 3 | add_column :kanjai_page_content_markers, :from_mail, :string |
| 4 | add_column :kanjai_page_content_markers, :to_mail, :string | 4 | add_column :kanjai_page_content_markers, :to_mail, :string |
| 1 | -class AddAnswerTextToPageContentMarker < ActiveRecord::Migration | 1 | +class AddAnswerTextToPageContentMarker < ActiveRecord::Migration[5.2] |
| 2 | def change | 2 | def change |
| 3 | add_column :kanjai_page_content_markers, :form_answer_text, :text | 3 | add_column :kanjai_page_content_markers, :form_answer_text, :text |
| 4 | end | 4 | end |