Sha256: f57ac993d93aac53f65eb44efc826ef5c4c9d5ffd2e53a41539f8409463410e0

Contents?: true

Size: 1.57 KB

Versions: 4

Compression:

Stored size: 1.57 KB

Contents

ActiveRecord::Schema.define do
  create_table 'addresses' do |t|
    t.integer 'addressable_id'
    t.string 'addressable_type'
    t.string 'street'
    t.string 'city'
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  create_table 'buildings' do |t|
    t.string 'name'
    t.integer 'owner_id'
    t.integer 'floors_count', :null => false, :default => 0
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  create_table 'cars' do |t|
    t.integer 'person_id'
    t.string 'brand'
    t.string 'model'
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  create_table 'contacts' do |t|
    t.integer 'contactable_id'
    t.string 'contactable_type'
    t.string 'first_name'
    t.string 'last_name'
    t.date 'birthday'
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  create_table 'floors' do |t|
    t.integer 'number'
    t.integer 'building_id'
    t.integer 'tenant_id'
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  create_table 'people' do |t|
    t.string 'first_name'
    t.string 'last_name'
    t.integer 'buildings_count', :null => false, :default => 0
    t.integer 'floors_count', :null => false, :default => 0
    t.integer 'contacts_count', :null => false, :default => 0
    t.boolean 'adult', :null => false, :default => false
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  create_table 'roles' do |t|
    t.string 'name'
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  create_table 'people_roles', :id => false do |t|
    t.integer 'person_id'
    t.integer 'role_id'
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
active_scaffold-3.4.17 test/mock_app/db/schema.rb
active_scaffold-3.4.16 test/mock_app/db/schema.rb
active_scaffold-3.4.14 test/mock_app/db/schema.rb
active_scaffold-3.4.13 test/mock_app/db/schema.rb