Sha256: 5be934fba6b851d890de44ea8734a8184da9f55822ebe6527ff3ca37ea8bdc85

Contents?: true

Size: 248 Bytes

Versions: 9

Compression:

Stored size: 248 Bytes

Contents

class RemoveForeignKeyFromEasySettings < ActiveRecord::Migration[4.2]
  def up
    begin
      remove_foreign_key :easy_settings, :projects
    rescue # rails 5 - if foreign_key_exists? :easy_settings, :projects
    end
  end

  def down
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
redmine_extensions-1.2.0 db/migrate/20190206121100_remove_foreign_key_from_easy_settings.rb
redmine_extensions-1.1.2 db/migrate/20190206121100_remove_foreign_key_from_easy_settings.rb
redmine_extensions-1.1.1 db/migrate/20190206121100_remove_foreign_key_from_easy_settings.rb
redmine_extensions-1.1.0 db/migrate/20190206121100_remove_foreign_key_from_easy_settings.rb
redmine_extensions-1.0.0 db/migrate/20190206121100_remove_foreign_key_from_easy_settings.rb
redmine_extensions-0.6.3 db/migrate/20190206121100_remove_foreign_key_from_easy_settings.rb
redmine_extensions-0.6.2 db/migrate/20190206121100_remove_foreign_key_from_easy_settings.rb
redmine_extensions-0.6.1 db/migrate/20190206121100_remove_foreign_key_from_easy_settings.rb
redmine_extensions-0.6.0 db/migrate/20190206121100_remove_foreign_key_from_easy_settings.rb