diff options
Diffstat (limited to 'db/migrate/4_create_seo_meta_for_blog.rb')
-rw-r--r-- | db/migrate/4_create_seo_meta_for_blog.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/db/migrate/4_create_seo_meta_for_blog.rb b/db/migrate/4_create_seo_meta_for_blog.rb index baf81a4..b1c3c31 100644 --- a/db/migrate/4_create_seo_meta_for_blog.rb +++ b/db/migrate/4_create_seo_meta_for_blog.rb @@ -1,6 +1,6 @@ class CreateSeoMetaForBlog < ActiveRecord::Migration - def self.up + def up unless ::SeoMetum.table_exists? create_table ::SeoMetum.table_name do |t| t.integer :seo_meta_id @@ -18,7 +18,7 @@ class CreateSeoMetaForBlog < ActiveRecord::Migration end end - def self.down + def down # can't drop the table because someone else might be using it. end |