Sha256: f46e3c83e5fc21a5c827d2d8558211e2cf308fe7bfeb8f509d2008a37776a1f2

Contents?: true

Size: 228 Bytes

Versions: 8

Compression:

Stored size: 228 Bytes

Contents

class CreateProducts < ActiveRecord::Migration
  def self.up
    create_table :products do |t|
      t.string :name
      t.text :description

      t.timestamps
    end
  end

  def self.down
    drop_table :products
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
has_eav-1.2.0 test/db/migrate/20101210102322_create_products.rb
has_eav-1.1.5 test/db/migrate/20101210102322_create_products.rb
has_eav-1.1.4 test/db/migrate/20101210102322_create_products.rb
has_eav-1.1.2 test/db/migrate/20101210102322_create_products.rb
has_eav-1.1.1 test/db/migrate/20101210102322_create_products.rb
has_eav-1.1.0 test/db/migrate/20101210102322_create_products.rb
has_eav-1.0.1 test/db/migrate/20101210102322_create_products.rb
has_eav-1.0.0 test/db/migrate/20101210102322_create_products.rb