Skip to content
This repository has been archived by the owner on Dec 22, 2018. It is now read-only.

Commit

Permalink
Prevent tenant error
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank Groeneveld committed Nov 11, 2016
1 parent 487d4a9 commit 10c5e16
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion db/migrate/20161104003026_add_email_templates_to_tenant.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
class AddEmailTemplatesToTenant < ActiveRecord::Migration
def change
add_reference :tenants, :email_template, index: true, foreign_key: true
unless column_exists? :tenants, :email_template_id
add_reference :tenants, :email_template, index: true, foreign_key: true
end
end
end

0 comments on commit 10c5e16

Please sign in to comment.