Sha256: fd2d0be862dee15b7771a7ca427eea9bc07e56d31fad5bdcc53efaecf8def5bd

Contents?: true

Size: 292 Bytes

Versions: 1

Compression:

Stored size: 292 Bytes

Contents

class CreateRecipes < ActiveRecord::Migration
  def self.up
    create_table :recipes do |t|
      t.string :name, :locale, :original_locale, :null => false
      t.text :ingredients, :steps, :null => false

      t.timestamps
    end
  end

  def self.down
    drop_table :recipes
  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/20110112023516_create_recipes.rb