Sha256: 5bfaae754dc2d88dfe6c1e83c31703a1f0c2f032102a47abe7d8475a712a4e33

Contents?: true

Size: 307 Bytes

Versions: 5

Compression:

Stored size: 307 Bytes

Contents

class CreatePastries < ActiveRecord::Migration

  def self.up
    create_table :pastries do |t|
      t.string :type
      t.string :flavor
      t.string :name
      t.string :maker
      t.string :weight
      t.string :main_ingredient
    end
  end

  def self.down
    drop_table :pastries
  end
  
end

Version data entries

5 entries across 3 versions & 1 rubygems

Version Path
has_defaults-0.4.0 spec/shared/app_root/db/migrate/001_create_pastries.rb
has_defaults-0.3.1 spec/rails2/app_root/db/migrate/001_create_pastries.rb
has_defaults-0.3.1 spec/rails3/app_root/db/migrate/001_create_pastries.rb
has_defaults-0.3.0 spec/rails2/app_root/db/migrate/001_create_pastries.rb
has_defaults-0.3.0 spec/rails3/app_root/db/migrate/001_create_pastries.rb