class CreateFurtherInformations

Public Instance Methods

change() click to toggle source
# File lib/generators/further/templates/create_further_informations.rb, line 2
def change
  create_table :further_informations do |t|
    t.references :furtherable, polymorphic: true
    t.text :info

    t.timestamps
  end
  add_index :further_informations, :furtherable_id
  add_index :further_informations, :furtherable_type
end