Sha256: e8b8d3a445beb4e54d574b5f9edb7b272a515565b1092e44261c6e79e5fb090c

Contents?: true

Size: 1.1 KB

Versions: 7

Compression:

Stored size: 1.1 KB

Contents

ActiveRecord::Schema.define(:version => 0) do

  create_table :widgets, :force => true do |t|
    t.string    :name
    t.text      :a_text
    t.integer   :an_integer
    t.float     :a_float
    t.decimal   :a_decimal
    t.datetime  :a_datetime
    t.time      :a_time
    t.date      :a_date
    t.boolean   :a_boolean
    t.datetime  :created_at, :updated_at
    t.string    :sacrificial_column
    t.string    :type
  end

  create_table :versions, :force => true do |t|
    t.string   :item_type, :null => false
    t.integer  :item_id,   :null => false
    t.string   :event,     :null => false
    t.string   :whodunnit
    t.text     :object
    t.datetime :created_at

    # Metadata columns.
    t.integer :answer
    t.string  :question
    t.integer :article_id
  end
  add_index :versions, [:item_type, :item_id]

  create_table :wotsits, :force => true do |t|
    t.integer :widget_id
    t.string  :name
  end

  create_table :fluxors, :force => true do |t|
    t.integer :widget_id
    t.string  :name
  end

  create_table :articles, :force => true do |t|
    t.integer :title
    t.string  :content
  end

end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
paper_trail-1.4.6 test/schema.rb
paper_trail-1.4.5 test/schema.rb
paper_trail-1.4.4 test/schema.rb
paper_trail-1.4.3 test/schema.rb
paper_trail-1.4.1 test/schema.rb
revo-paper_trail-1.4.2 test/schema.rb
paper_trail-1.4.0 test/schema.rb