Module: RocketCMS::Migration

Extended by:
Migration
Included in:
Migration
Defined in:
lib/rocket_cms/migration.rb

Instance Method Summary collapse

Instance Method Details

#seo_fields(t) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/rocket_cms/migration.rb', line 5

def seo_fields(t)
  t.string :name, null: false
  t.string :h1
  t.string :title
  t.string :keywords
  t.text :description
  t.string :robots
  t.string :og_title
  t.attachment :og_image

  #if RocketCMS.localize
    #t.column :name_translations, 'hstore'
    #t.column :name_translations, 'hstore'
  #end
end