Sha256: a72e0a3240097aa5af9c08415a6d2ba7199699877dcb2b21e17ee534b5b9a51b

Contents?: true

Size: 406 Bytes

Versions: 4

Compression:

Stored size: 406 Bytes

Contents

class Initial < ActiveRecord::Migration
  def up
    connection.create_table :books do |t|
      t.string :title, :author, :addn_authors, :state
      t.timestamp :date_read
      t.text :notes
      t.timestamps
    end

    connection.create_table :tags do |t|
      t.string :name
      t.timestamps
    end

    connection.create_table :taggings do |t|
      t.belongs_to :tag, :book
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
booklist-0.0.10 db/migrate/001_initial.rb
booklist-0.0.9 db/migrate/001_initial.rb
booklist-0.0.7 db/migrate/001_initial.rb
booklist-0.0.1 db/migrate/001_initial.rb