Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 422bcc97de19f957953c88dea8939ab59a1e01eb 1 parent a62cb95
@threedaymonk threedaymonk authored
View
3  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
View
17 db/migrate/20111118154228_drop_identifiers.rb
@@ -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
24 db/schema.rb
@@ -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|
Please sign in to comment.
Something went wrong with that request. Please try again.