class CreateSeoMeta
Public Instance Methods
change()
click to toggle source
# File lib/generators/active_seo/templates/migration/migration.rb, line 2 def change create_table :seo_meta do |t| t.string :title t.text :description t.text :keywords t.boolean :noindex, default: false t.boolean :nofollow, default: false t.integer :seoable_id, null: false t.string :seoable_type, null: false t.timestamps end add_index :seo_meta, [:seoable_id, :seoable_type], unique: true end