Skip to content
This repository has been archived by the owner on Oct 12, 2018. It is now read-only.

Commit

Permalink
Fix db migrations and schema to match reality.
Browse files Browse the repository at this point in the history
It's still not clear where the users table came from, as there's no migration
creating it, but at least contacts now match the expected schema as expected
by the models.
  • Loading branch information
threedaymonk committed Apr 27, 2012
1 parent a62cb95 commit 422bcc9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 34 deletions.
3 changes: 3 additions & 0 deletions db/migrate/20110920102715_create_artefacts.rb
@@ -1,4 +1,7 @@
class CreateArtefacts < ActiveRecord::Migration
class Audience < ActiveRecord::Base
end

def up
create_table :related_items do |t|
t.integer :source_artefact_id, :null => false
Expand Down
17 changes: 0 additions & 17 deletions db/migrate/20111118154228_drop_identifiers.rb

This file was deleted.

24 changes: 7 additions & 17 deletions db/schema.rb
Expand Up @@ -52,23 +52,13 @@
end

create_table "contacts", :force => true do |t|
t.string "name", :null => false
t.datetime "created_at"
t.datetime "updated_at"
t.text "postal_address"
t.string "email_address"
t.string "website_url"
t.text "opening_hours"
t.integer "contactotron_id", :null => false
end

create_table "phone_numbers", :force => true do |t|
t.integer "contact_id", :null => false
t.string "kind", :null => false
t.string "label"
t.string "value", :null => false
t.datetime "created_at"
t.datetime "updated_at"
t.string "name", :null => false
t.text "postal_address"
t.string "email_address"
t.string "website_url"
t.text "opening_hours"
t.text "phone_numbers"
t.integer "contactotron_id", :null => false
end

create_table "related_items", :force => true do |t|
Expand Down

0 comments on commit 422bcc9

Please sign in to comment.