Module: RocketCMS::Migration
Instance Method Summary collapse
Instance Method Details
#map_fields(t) ⇒ Object
21 22 23 24 25 26 27 28 29 |
# File 'lib/rocket_cms/migration.rb', line 21 def map_fields(t) t.text :address t.text :map_address t.text :map_hint t.float :latitude t.float :longitude t.float :lat t.float :lon end |
#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.text :keywords t.text :description t.string :robots t.string :og_title t. :og_image #if RocketCMS.localize #t.column :name_translations, 'hstore' #t.column :name_translations, 'hstore' #end end |