Sha256: 37b0d511281f641f2dcda240d97b40848fa7f7d64e590ab70ae8c3cc262deb8a

Contents?: true

Size: 456 Bytes

Versions: 18

Compression:

Stored size: 456 Bytes

Contents

class CreateRecipeModels < ActiveRecord::Migration

  def self.up
    create_table :recipes do |t|
      t.string :name
      t.integer :category_id
    end
    create_table :recipe_ingredients do |t|
      t.string :name
      t.integer :recipe_id
    end
    create_table :recipe_categories do |t|
      t.string :name
    end
  end

  def self.down
    drop_table :recipes
    drop_table :recipe_ingredients
    drop_table :recipe_categories
  end

end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
dusen-0.6.1 spec/shared/app_root/db/migrate/003_create_recipe_models.rb
dusen-0.6.0 spec/shared/app_root/db/migrate/003_create_recipe_models.rb
dusen-0.5.3 spec/shared/app_root/db/migrate/003_create_recipe_models.rb
dusen-0.5.2 spec/shared/app_root/db/migrate/003_create_recipe_models.rb
dusen-0.5.1 spec/shared/app_root/db/migrate/003_create_recipe_models.rb
dusen-0.5 spec/shared/app_root/db/migrate/003_create_recipe_models.rb
dusen-0.4.11 spec/shared/app_root/db/migrate/003_create_recipe_models.rb
dusen-0.4.10 spec/shared/app_root/db/migrate/003_create_recipe_models.rb
dusen-0.4.9 spec/shared/app_root/db/migrate/003_create_recipe_models.rb
dusen-0.4.8 spec/shared/app_root/db/migrate/003_create_recipe_models.rb
dusen-0.4.6 spec/shared/app_root/db/migrate/003_create_recipe_models.rb
dusen-0.4.5 spec/shared/app_root/db/migrate/003_create_recipe_models.rb
dusen-0.4.4 spec/shared/app_root/db/migrate/003_create_recipe_models.rb
dusen-0.4.3 spec/shared/app_root/db/migrate/003_create_recipe_models.rb
dusen-0.4.2 spec/shared/app_root/db/migrate/003_create_recipe_models.rb
dusen-0.4.1 spec/shared/app_root/db/migrate/003_create_recipe_models.rb
dusen-0.4.0 spec/shared/app_root/db/migrate/003_create_recipe_models.rb
dusen-0.3.0 spec/shared/app_root/db/migrate/003_create_recipe_models.rb