Sha256: d6b6e8e482633d0cacff9d4a6cc9e66c0f71052454ae836a09b1ab894050ab07

Contents?: true

Size: 635 Bytes

Versions: 2

Compression:

Stored size: 635 Bytes

Contents

ActiveRecord::Schema.define :version => 0 do
  create_table :users, :force => true do |t|
    t.string :name
  end

  create_table :items, :force => true do |t|
    t.string :title
  end

  # acts-as-taggable-on
  # https://github.com/mbleigh/acts-as-taggable-on/blob/master/lib/generators/acts_as_taggable_on/migration/templates/active_record/migration.rb
  create_table :tags do |t|
    t.string :name
  end

  create_table :taggings do |t|
    t.references :tag
    t.references :taggable, :polymorphic => true
    t.references :tagger, :polymorphic => true
    t.string :context, :limit => 128

    t.datetime :created_at
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
log_book-0.1.1 test/schema.rb
log_book-0.0.1 test/schema.rb