aboutsummaryrefslogtreecommitdiffstats
path: root/db/migrate/20130124232356_create_seo_meta.seo_meta_engine.rb
blob: 7efd8dc0320fad9ed919b6292dcddd73057a6989 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# This migration comes from seo_meta_engine (originally 20110329222114)
class CreateSeoMeta < ActiveRecord::Migration

  def self.up
    create_table :seo_meta do |t|
      t.integer :seo_meta_id
      t.string :seo_meta_type

      t.string :browser_title
      t.string :meta_keywords
      t.text :meta_description

      t.timestamps
    end

    add_index :seo_meta, :id
    add_index :seo_meta, [:seo_meta_id, :seo_meta_type]
  end

  def self.down
    drop_table :seo_meta
  end

end