diff options
Diffstat (limited to 'db/migrate/20181123144235_create_suggestions.rb')
-rw-r--r-- | db/migrate/20181123144235_create_suggestions.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/db/migrate/20181123144235_create_suggestions.rb b/db/migrate/20181123144235_create_suggestions.rb index 78888517db5..b92e8ac8027 100644 --- a/db/migrate/20181123144235_create_suggestions.rb +++ b/db/migrate/20181123144235_create_suggestions.rb @@ -3,12 +3,14 @@ class CreateSuggestions < ActiveRecord::Migration[5.0] DOWNTIME = false + # rubocop:disable Migration/PreventStrings + # rubocop:disable Migration/AddLimitToTextColumns def change create_table :suggestions, id: :bigserial do |t| t.references :note, foreign_key: { on_delete: :cascade }, null: false t.integer :relative_order, null: false, limit: 2 t.boolean :applied, null: false, default: false - t.string :commit_id # rubocop:disable Migration/AddLimitToStringColumns + t.string :commit_id t.text :from_content, null: false t.text :to_content, null: false @@ -17,4 +19,6 @@ class CreateSuggestions < ActiveRecord::Migration[5.0] unique: true end end + # rubocop:enable Migration/AddLimitToTextColumns + # rubocop:enable Migration/PreventStrings end |