Sha256: 281f3cc4fffca83332fe9b10258c1c15423ad60db490f84037ab8eca028ae051

Contents?: true

Size: 216 Bytes

Versions: 5

Compression:

Stored size: 216 Bytes

Contents

class CreateItems < ActiveRecord::Migration
  def self.up
    create_table :items do |t|
      t.string :name
      t.decimal :price

      t.timestamps
    end
  end

  def self.down
    drop_table :items
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
restfulie-nosqlite-1.0.4 full-examples/rest_from_scratch/part_1/db/migrate/20100830171258_create_items.rb
restfulie-1.1.1 full-examples/rest_from_scratch/part_1/db/migrate/20100830171258_create_items.rb
restfulie-1.1.0 full-examples/rest_from_scratch/part_1/db/migrate/20100830171258_create_items.rb
restfulie-nosqlite-1.0.3 full-examples/rest_from_scratch/part_1/db/migrate/20100830171258_create_items.rb
restfulie-1.0.3 full-examples/rest_from_scratch/part_1/db/migrate/20100830171258_create_items.rb