This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fix db migrations and schema to match reality.

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 422bcc97de19f957953c88dea8939ab59a1e01eb
Showing with 10 additions and 34 deletions.
  1. +3 −0 db/migrate/20110920102715_create_artefacts.rb
  2. +0 −17 db/migrate/20111118154228_drop_identifiers.rb
  3. +7 −17 db/schema.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
@@ -1,17 +0,0 @@
-class DropIdentifiers < ActiveRecord::Migration
- def up
- drop_table :identifiers
- end
-
- def down
- create_table :identifiers, :force => true do |t|
- t.boolean :active, :default => false, :null => false
- t.string :slug, :limit => 63, :null => false
- t.string :owning_app, :limit => 50, :null => false
- t.string :kind, :limit => 50, :null => false
- t.datetime :created_at
- end
-
- add_index :identifiers, :slug, :name => 'unique_identifiers_slug', :unique => true
- end
-end
View
@@ -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|

0 comments on commit 422bcc9

Please sign in to comment.