Sha256: 5ec4e68d1c4cfee8435c01c987eceed11032cfb736cd01acf9ae7bcccbf98e3a

Contents?: true

Size: 387 Bytes

Versions: 6

Compression:

Stored size: 387 Bytes

Contents

class CreateStudentReviewCategoriesTable < ActiveRecord::Migration[4.2]
  def up
    create_table :gaku_student_review_categories do |t|
      t.string :name
      t.timestamps
    end
    Gaku::StudentReviewCategory.create_translation_table! name: :string
  end
  def down
    drop_table :gaku_student_review_categories
    Gaku::StudentReviewCategory.drop_translation_table!
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
gaku_core-0.3.0 db/migrate/20140718105226_create_student_review_categories_table.rb
gaku_core-0.3.0.pre.4 db/migrate/20140718105226_create_student_review_categories_table.rb
gaku_core-0.3.0.pre.3 db/migrate/20140718105226_create_student_review_categories_table.rb
gaku_core-0.3.0.pre.2 db/migrate/20140718105226_create_student_review_categories_table.rb
gaku_core-0.3.0.pre.1 db/migrate/20140718105226_create_student_review_categories_table.rb
gaku_core-0.3.0.pre.0 db/migrate/20140718105226_create_student_review_categories_table.rb