Sha256: 6b94accdf3a9c8204adec871c0e88f5661a25977f9f83553eca0e732f821e292

Contents?: true

Size: 323 Bytes

Versions: 1

Compression:

Stored size: 323 Bytes

Contents

class CreateItems < ActiveRecord::Migration
  def self.up
    create_table :items do |t|
      t.string :label, :null => false
      t.string :value, :locale, :original_locale, :description
      t.integer :person_id, :references => :people
      t.timestamps
    end
  end

  def self.down
    drop_table :items
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mongo_translatable-0.1.0 test/full_2_3_5_app_with_tests/db/migrate/20100407010602_create_items.rb