Sha256: a43a076cd1ccdc769be3825178e103910279ce44fe9566f3f985b2ee77f07a8c

Contents?: true

Size: 760 Bytes

Versions: 2

Compression:

Stored size: 760 Bytes

Contents

module RocketCMS
  module Migration
    extend self

    def seo_fields(t)
      if RocketCMS.config.localize
        t.column :h1_translations, 'hstore'
        t.column :title_translations, 'hstore'
        t.column :keywords_translations, 'hstore'
        t.column :description_translations, 'hstore'
        t.column :og_title_translations, 'hstore'
      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

2 entries across 2 versions & 1 rubygems

Version Path
rocket_cms-0.8.0.pre.2 lib/rocket_cms/migration.rb
rocket_cms-0.8.0.pre.1 lib/rocket_cms/migration.rb