Sha256: 8c136b156978164ca4fae0479c483d4a9f100e68acf97a9d73ba8e0c9c362d84
Contents?: true
Size: 817 Bytes
Versions: 27
Compression:
Stored size: 817 Bytes
Contents
module Enjoy module Migration extend self def seo_fields(t) if Enjoy.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 t.attachment :og_image 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
27 entries across 27 versions & 1 rubygems