diff options
Diffstat (limited to 'db/migrate/20180515121227_create_notes_diff_files.rb')
-rw-r--r-- | db/migrate/20180515121227_create_notes_diff_files.rb | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/db/migrate/20180515121227_create_notes_diff_files.rb b/db/migrate/20180515121227_create_notes_diff_files.rb deleted file mode 100644 index 1797a86c679..00000000000 --- a/db/migrate/20180515121227_create_notes_diff_files.rb +++ /dev/null @@ -1,27 +0,0 @@ -class CreateNotesDiffFiles < ActiveRecord::Migration[4.2] - DOWNTIME = false - - disable_ddl_transaction! - - # rubocop:disable Migration/AddLimitToTextColumns - # rubocop:disable Migration/PreventStrings - def change - create_table :note_diff_files do |t| - t.references :diff_note, references: :notes, null: false, index: { unique: true } - t.text :diff, null: false - t.boolean :new_file, null: false - t.boolean :renamed_file, null: false - t.boolean :deleted_file, null: false - t.string :a_mode, null: false - t.string :b_mode, null: false - t.text :new_path, null: false - t.text :old_path, null: false - end - - # rubocop:disable Migration/AddConcurrentForeignKey - add_foreign_key :note_diff_files, :notes, column: :diff_note_id, on_delete: :cascade - # rubocop:enable Migration/AddConcurrentForeignKey - end - # rubocop:enable Migration/PreventStrings - # rubocop:enable Migration/AddLimitToTextColumns -end |