Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Schema changed?

  • Loading branch information...
commit 2ed65918fb355dcf3c7cec3febae7a6422450ca2 1 parent 314f53a
@create-philipp-ullmann create-philipp-ullmann authored
Showing with 17 additions and 41 deletions.
  1. +17 −41 db/schema.rb
View
58 db/schema.rb
@@ -13,13 +13,6 @@
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|
t.integer "account_id"
t.integer "contact_id"
@@ -39,8 +32,8 @@
create_table "accounts", :force => true do |t|
t.integer "user_id"
t.integer "assigned_to"
- t.string "name", :limit => 128, :default => "", :null => false
- t.string "access", :limit => 8, :default => "Public"
+ t.string "name", :limit => 64, :default => "", :null => false
+ t.string "access", :limit => 8, :default => "Private"
t.string "website", :limit => 64
t.string "toll_free_phone", :limit => 32
t.string "phone", :limit => 32
@@ -50,7 +43,7 @@
t.datetime "updated_at"
t.string "email", :limit => 64
t.string "background_info"
- t.integer "rating", :default => 0, :null => false
+ t.integer "rating", :default => 0, :null => false
t.string "category", :limit => 32
t.text "subscribed_users"
end
@@ -90,13 +83,6 @@
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|
t.integer "user_id"
t.integer "entity_id"
@@ -111,8 +97,8 @@
create_table "campaigns", :force => true do |t|
t.integer "user_id"
t.integer "assigned_to"
- t.string "name", :limit => 64, :default => "", :null => false
- t.string "access", :limit => 8, :default => "Public"
+ t.string "name", :limit => 64, :default => "", :null => false
+ t.string "access", :limit => 8, :default => "Private"
t.string "status", :limit => 64
t.decimal "budget", :precision => 12, :scale => 2
t.integer "target_leads"
@@ -146,13 +132,6 @@
t.string "state", :limit => 16, :default => "Expanded", :null => false
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|
t.integer "contact_id"
t.integer "opportunity_id"
@@ -167,9 +146,9 @@
t.integer "lead_id"
t.integer "assigned_to"
t.integer "reports_to"
- t.string "first_name", :default => ""
- t.string "last_name", :default => ""
- t.string "access", :limit => 8, :default => "Public"
+ t.string "first_name", :limit => 64, :default => "", :null => false
+ t.string "last_name", :limit => 64, :default => "", :null => false
+ t.string "access", :limit => 8, :default => "Private"
t.string "title", :limit => 64
t.string "department", :limit => 64
t.string "source", :limit => 32
@@ -183,7 +162,7 @@
t.string "facebook", :limit => 128
t.string "twitter", :limit => 128
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 "created_at"
t.datetime "updated_at"
@@ -252,9 +231,9 @@
t.integer "user_id"
t.integer "campaign_id"
t.integer "assigned_to"
- t.string "first_name", :limit => 64, :default => "", :null => false
- t.string "last_name", :limit => 64, :default => "", :null => false
- t.string "access", :limit => 8, :default => "Public"
+ t.string "first_name", :limit => 64, :default => "", :null => false
+ t.string "last_name", :limit => 64, :default => "", :null => false
+ t.string "access", :limit => 8, :default => "Private"
t.string "title", :limit => 64
t.string "company", :limit => 64
t.string "source", :limit => 32
@@ -268,8 +247,8 @@
t.string "linkedin", :limit => 128
t.string "facebook", :limit => 128
t.string "twitter", :limit => 128
- t.integer "rating", :default => 0, :null => false
- t.boolean "do_not_call", :default => false, :null => false
+ t.integer "rating", :default => 0, :null => false
+ t.boolean "do_not_call", :default => false, :null => false
t.datetime "deleted_at"
t.datetime "created_at"
t.datetime "updated_at"
@@ -292,8 +271,8 @@
t.integer "user_id"
t.integer "campaign_id"
t.integer "assigned_to"
- t.string "name", :limit => 64, :default => "", :null => false
- t.string "access", :limit => 8, :default => "Public"
+ t.string "name", :limit => 64, :default => "", :null => false
+ t.string "access", :limit => 8, :default => "Private"
t.string "source", :limit => 32
t.string "stage", :limit => 32
t.integer "probability"
@@ -364,10 +343,7 @@
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|
- t.string "name"
- t.datetime "created_at"
- t.datetime "updated_at"
- t.string "taggable_type"
+ t.string "name"
end
create_table "tasks", :force => true do |t|
Please sign in to comment.
Something went wrong with that request. Please try again.