Sha256: fb1229c3ec67ce2fbf8151419122e37579659341b466fb4ad66640299dad39d5

Contents?: true

Size: 290 Bytes

Versions: 5

Compression:

Stored size: 290 Bytes

Contents

class CreateFaqs < ActiveRecord::Migration
  def self.up
    create_table :faqs do |t|
      t.integer :number
      t.belongs_to :widget_faq
    end
    Faq.create_translation_table!(:question => :string,:answer => :string)
  end

  def self.down
    Faq.drop_translation_table!
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
forgeos_cms-1.9.5.rc1 db/migrate/20100511161012_create_faqs.rb
forgeos_cms-1.9.4 db/migrate/20100511161012_create_faqs.rb
forgeos_cms-1.9.2 db/migrate/20100511161012_create_faqs.rb
forgeos_cms-1.9.1 db/migrate/20100511161012_create_faqs.rb
forgeos_cms-1.9.0 db/migrate/20100511161012_create_faqs.rb