Sha256: 4ecbd4f1f8abf88c2408036a7c92782175467195d7a983ee49f47ee0b5d305cf

Contents?: true

Size: 263 Bytes

Versions: 5

Compression:

Stored size: 263 Bytes

Contents

class CreateBooks < ActiveRecord::Migration
  def change
    create_table :books, force: true do |t|
      t.string :title
      t.string :author
      t.datetime :last_checkout_at
      t.integer :library_id, :null => false
      t.timestamps
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
importable_attachments-0.0.18 spec/dummy/db/migrate/102_create_books.rb
importable_attachments-0.0.17 spec/dummy/db/migrate/102_create_books.rb
importable_attachments-0.0.15 spec/dummy/db/migrate/102_create_books.rb
importable_attachments-0.0.14 spec/dummy/db/migrate/102_create_books.rb
importable_attachments-0.0.13 spec/dummy/db/migrate/102_create_books.rb