Sha256: a419b2f20271ecb65959a22be7dfe27172f76e94e11ddc39fa124fe037517cc8

Contents?: true

Size: 228 Bytes

Versions: 9

Compression:

Stored size: 228 Bytes

Contents

class CreateProducts < ActiveRecord::Migration
  def change
    create_table :products do |t|
      t.string :name
      t.text :description
      t.decimal :price
      t.integer :quantity

      t.timestamps
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
activegrid-1.0.8 test/dummy/db/migrate/20111015173017_create_products.rb
activegrid-1.0.7 test/dummy/db/migrate/20111015173017_create_products.rb
activegrid-1.0.6 test/dummy/db/migrate/20111015173017_create_products.rb
activegrid-1.0.5 test/dummy/db/migrate/20111015173017_create_products.rb
activegrid-1.0.4 test/dummy/db/migrate/20111015173017_create_products.rb
activegrid-1.0.3 test/dummy/db/migrate/20111015173017_create_products.rb
activegrid-1.0.2 test/dummy/db/migrate/20111015173017_create_products.rb
activegrid-1.0.1 test/dummy/db/migrate/20111015173017_create_products.rb
activegrid-1.0.0 test/dummy/db/migrate/20111015173017_create_products.rb