Skip to content

Commit

Permalink
Schema changed?
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Ullmann committed Apr 11, 2012
1 parent 314f53a commit 2ed6591
Showing 1 changed file with 17 additions and 41 deletions.
58 changes: 17 additions & 41 deletions db/schema.rb
Expand Up @@ -13,13 +13,6 @@


ActiveRecord::Schema.define(:version => 20120405080742) do ActiveRecord::Schema.define(:version => 20120405080742) do


create_table "account_aliases", :force => true do |t|
t.integer "account_id"
t.integer "destroyed_account_id"
t.datetime "created_at"
t.datetime "updated_at"
end

create_table "account_contacts", :force => true do |t| create_table "account_contacts", :force => true do |t|
t.integer "account_id" t.integer "account_id"
t.integer "contact_id" t.integer "contact_id"
Expand All @@ -39,8 +32,8 @@
create_table "accounts", :force => true do |t| create_table "accounts", :force => true do |t|
t.integer "user_id" t.integer "user_id"
t.integer "assigned_to" t.integer "assigned_to"
t.string "name", :limit => 128, :default => "", :null => false t.string "name", :limit => 64, :default => "", :null => false
t.string "access", :limit => 8, :default => "Public" t.string "access", :limit => 8, :default => "Private"
t.string "website", :limit => 64 t.string "website", :limit => 64
t.string "toll_free_phone", :limit => 32 t.string "toll_free_phone", :limit => 32
t.string "phone", :limit => 32 t.string "phone", :limit => 32
Expand All @@ -50,7 +43,7 @@
t.datetime "updated_at" t.datetime "updated_at"
t.string "email", :limit => 64 t.string "email", :limit => 64
t.string "background_info" t.string "background_info"
t.integer "rating", :default => 0, :null => false t.integer "rating", :default => 0, :null => false
t.string "category", :limit => 32 t.string "category", :limit => 32
t.text "subscribed_users" t.text "subscribed_users"
end end
Expand Down Expand Up @@ -90,13 +83,6 @@


add_index "addresses", ["addressable_id", "addressable_type"], :name => "index_addresses_on_addressable_id_and_addressable_type" add_index "addresses", ["addressable_id", "addressable_type"], :name => "index_addresses_on_addressable_id_and_addressable_type"


create_table "application_accounts", :force => true do |t|
t.string "name"
t.string "single_access_token", :null => false
t.datetime "created_at"
t.datetime "updated_at"
end

create_table "avatars", :force => true do |t| create_table "avatars", :force => true do |t|
t.integer "user_id" t.integer "user_id"
t.integer "entity_id" t.integer "entity_id"
Expand All @@ -111,8 +97,8 @@
create_table "campaigns", :force => true do |t| create_table "campaigns", :force => true do |t|
t.integer "user_id" t.integer "user_id"
t.integer "assigned_to" t.integer "assigned_to"
t.string "name", :limit => 64, :default => "", :null => false t.string "name", :limit => 64, :default => "", :null => false
t.string "access", :limit => 8, :default => "Public" t.string "access", :limit => 8, :default => "Private"
t.string "status", :limit => 64 t.string "status", :limit => 64
t.decimal "budget", :precision => 12, :scale => 2 t.decimal "budget", :precision => 12, :scale => 2
t.integer "target_leads" t.integer "target_leads"
Expand Down Expand Up @@ -146,13 +132,6 @@
t.string "state", :limit => 16, :default => "Expanded", :null => false t.string "state", :limit => 16, :default => "Expanded", :null => false
end end


create_table "contact_aliases", :force => true do |t|
t.integer "contact_id"
t.integer "destroyed_contact_id"
t.datetime "created_at"
t.datetime "updated_at"
end

create_table "contact_opportunities", :force => true do |t| create_table "contact_opportunities", :force => true do |t|
t.integer "contact_id" t.integer "contact_id"
t.integer "opportunity_id" t.integer "opportunity_id"
Expand All @@ -167,9 +146,9 @@
t.integer "lead_id" t.integer "lead_id"
t.integer "assigned_to" t.integer "assigned_to"
t.integer "reports_to" t.integer "reports_to"
t.string "first_name", :default => "" t.string "first_name", :limit => 64, :default => "", :null => false
t.string "last_name", :default => "" t.string "last_name", :limit => 64, :default => "", :null => false
t.string "access", :limit => 8, :default => "Public" t.string "access", :limit => 8, :default => "Private"
t.string "title", :limit => 64 t.string "title", :limit => 64
t.string "department", :limit => 64 t.string "department", :limit => 64
t.string "source", :limit => 32 t.string "source", :limit => 32
Expand All @@ -183,7 +162,7 @@
t.string "facebook", :limit => 128 t.string "facebook", :limit => 128
t.string "twitter", :limit => 128 t.string "twitter", :limit => 128
t.date "born_on" t.date "born_on"
t.boolean "do_not_call", :default => false, :null => false t.boolean "do_not_call", :default => false, :null => false
t.datetime "deleted_at" t.datetime "deleted_at"
t.datetime "created_at" t.datetime "created_at"
t.datetime "updated_at" t.datetime "updated_at"
Expand Down Expand Up @@ -252,9 +231,9 @@
t.integer "user_id" t.integer "user_id"
t.integer "campaign_id" t.integer "campaign_id"
t.integer "assigned_to" t.integer "assigned_to"
t.string "first_name", :limit => 64, :default => "", :null => false t.string "first_name", :limit => 64, :default => "", :null => false
t.string "last_name", :limit => 64, :default => "", :null => false t.string "last_name", :limit => 64, :default => "", :null => false
t.string "access", :limit => 8, :default => "Public" t.string "access", :limit => 8, :default => "Private"
t.string "title", :limit => 64 t.string "title", :limit => 64
t.string "company", :limit => 64 t.string "company", :limit => 64
t.string "source", :limit => 32 t.string "source", :limit => 32
Expand All @@ -268,8 +247,8 @@
t.string "linkedin", :limit => 128 t.string "linkedin", :limit => 128
t.string "facebook", :limit => 128 t.string "facebook", :limit => 128
t.string "twitter", :limit => 128 t.string "twitter", :limit => 128
t.integer "rating", :default => 0, :null => false t.integer "rating", :default => 0, :null => false
t.boolean "do_not_call", :default => false, :null => false t.boolean "do_not_call", :default => false, :null => false
t.datetime "deleted_at" t.datetime "deleted_at"
t.datetime "created_at" t.datetime "created_at"
t.datetime "updated_at" t.datetime "updated_at"
Expand All @@ -292,8 +271,8 @@
t.integer "user_id" t.integer "user_id"
t.integer "campaign_id" t.integer "campaign_id"
t.integer "assigned_to" t.integer "assigned_to"
t.string "name", :limit => 64, :default => "", :null => false t.string "name", :limit => 64, :default => "", :null => false
t.string "access", :limit => 8, :default => "Public" t.string "access", :limit => 8, :default => "Private"
t.string "source", :limit => 32 t.string "source", :limit => 32
t.string "stage", :limit => 32 t.string "stage", :limit => 32
t.integer "probability" t.integer "probability"
Expand Down Expand Up @@ -364,10 +343,7 @@
add_index "taggings", ["taggable_id", "taggable_type", "context"], :name => "index_taggings_on_taggable_id_and_taggable_type_and_context" add_index "taggings", ["taggable_id", "taggable_type", "context"], :name => "index_taggings_on_taggable_id_and_taggable_type_and_context"


create_table "tags", :force => true do |t| create_table "tags", :force => true do |t|
t.string "name" t.string "name"
t.datetime "created_at"
t.datetime "updated_at"
t.string "taggable_type"
end end


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

0 comments on commit 2ed6591

Please sign in to comment.