Sha256: e8a2df18b570437805fcb66de43d14272525a23225ce923a14ce8acdd6aa4ec8

Contents?: true

Size: 852 Bytes

Versions: 10

Compression:

Stored size: 852 Bytes

Contents

ActiveRecord::Schema.define(:version => 0) do
  create_table :users do |t|
    t.string :login, :null => false
    t.string :password, :null => false
    t.string :name, :null => false
    t.timestamps
  end

  create_table :some_data do |t|
    t.string :name, :null => false
    t.string :description, :null => false
    t.string :value
    t.timestamps
  end

  create_table  :record_histories do |t|
    t.string    :item_type, :null => false
    t.integer   :item_id,   :null => false
    t.string    :attr_name
    t.text      :old_value_dump
    t.text      :new_value_dump
    t.string    :author_type
    t.integer   :author_id
    t.datetime  :created_at
  end
  add_index :record_histories, [:item_type, :item_id, :attr_name]
  add_index :record_histories, [:item_type, :item_id]
  add_index :record_histories, [:author_type, :author_id]
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
record_history-0.9.1 spec/db/schema.rb
record_history-0.9.0 spec/db/schema.rb
record_history-0.8.9 spec/db/schema.rb
record_history-0.8.8 spec/db/schema.rb
record_history-0.8.7 spec/db/schema.rb
record_history-0.8.6 spec/db/schema.rb
record_history-0.8.5 spec/db/schema.rb
record_history-0.8.4 spec/db/schema.rb
record_history-0.8.3 spec/db/schema.rb
record_history-0.8.2 spec/db/schema.rb