Sha256: c4a1a87ec6ed67372362bf91bec566637f2ad2021570d6ab1841eb602056b03e

Contents?: true

Size: 349 Bytes

Versions: 2

Compression:

Stored size: 349 Bytes

Contents

class SeoFriendly < ActiveRecord::Migration

  def change
    create_table :seo_params do |t|
      t.string :description
      t.string :title
      t.string :keywords

      t.integer :searchable_id
      t.string  :searchable_type

      t.timestamps null: false
    end

    add_index :seo_params, [ :searchable_id, :searchable_type ]

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
seo_friendly-0.0.2 lib/generators/seo_friendly/install/templates/migrations/create_seo_params.rb
seo_friendly-0.0.1 lib/generators/seo_friendly/install/templates/migrations/create_seo_params.rb