From f95f488a0b6708d994678987b606358fd4107430 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Tue, 12 Apr 2016 19:56:25 +0200 Subject: [PATCH] only drop 'user_firsts' table if it exists --- db/migrate/20160407160756_remove_user_firsts.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/migrate/20160407160756_remove_user_firsts.rb b/db/migrate/20160407160756_remove_user_firsts.rb index dfbd23044..6f4004a59 100644 --- a/db/migrate/20160407160756_remove_user_firsts.rb +++ b/db/migrate/20160407160756_remove_user_firsts.rb @@ -1,6 +1,6 @@ class RemoveUserFirsts < ActiveRecord::Migration def up - drop_table :user_firsts + drop_table(:user_firsts) if table_exists?(:user_firsts) rescue # continues with other migrations if we can't delete that table nil