Class: CreateWeelerSeos
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateWeelerSeos
- Defined in:
- lib/generators/weeler/templates/migrations/create_weeler_seos.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/generators/weeler/templates/migrations/create_weeler_seos.rb', line 2 def change create_table :weeler_seos do |t| t.string :title t.text :description t.text :keywords t.string :section t.references :seoable, index: true, polymorphic: true t. end add_index :weeler_seos, :section end |