Sha256: 348f0c809bd6c005f5c456293d3d5c0dab8d9fb292fb80c9887fc9539a329feb

Contents?: true

Size: 289 Bytes

Versions: 3

Compression:

Stored size: 289 Bytes

Contents

class CreateBooks < ActiveRecord::Migration
  def change
    create_table :books do |t|
      t.string :title
      t.string :author
      t.text :description
      t.float :price
      t.datetime :published_at
      t.boolean :discounted

      t.timestamps null: false
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
skins-0.0.3 test/dummy/db/migrate/20141116110032_create_books.rb
skins-0.0.2 test/dummy/db/migrate/20141116110032_create_books.rb
skins-0.0.1 test/dummy/db/migrate/20141116110032_create_books.rb