Sha256: ee49074aacd0aa621695d6125b4401ea046b6f647e872effd80ab5175bf6b159
Contents?: true
Size: 929 Bytes
Versions: 10
Compression:
Stored size: 929 Bytes
Contents
module RocketCMS module Migration extend self def seo_fields(t) if RocketCMS.config.localize t.column :h1_translations, 'hstore', default: {} t.column :title_translations, 'hstore', default: {} t.column :keywords_translations, 'hstore', default: {} t.column :description_translations, 'hstore', default: {} t.column :og_title_translations, 'hstore', default: {} else t.string :h1 t.string :title t.text :keywords t.text :description t.string :og_title end t.string :robots if RocketCMS.shrine? t.jsonb :og_image_data elsif RocketCMS.paperclip? t.attachment :og_image end end 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 end end
Version data entries
10 entries across 10 versions & 1 rubygems