

  create_table "post_types", force: true do |t|
    t.integer  "id"
    t.string "name", null: false
  end

  create_table "posts", force: true do |t|
    t.integer  "id"
    t.integer  "post_type_id",       limit: 2,               null: false
    t.integer  "accepted_answer_id"
    t.integer  "parent_id"
    t.integer  "user_id",                                    null: false
    t.text     "title",              limit: 255,             null: false
    t.text     "body",                                       null: false
    t.integer  "score",                          default: 0, null: false
    t.integer  "views",                          default: 1, null: false
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  create_table "posts_tags", force: true do |t|
    t.integer  "id"
    t.integer "post_id", null: false
    t.integer "tag_id",  null: false
  end

  create_table "tag_synonyms", force: true do |t|
    t.integer  "id"
    t.string "source_tag", null: false
    t.string "synonym",    null: false
  end

  create_table "tags", force: true do |t|
    t.integer  "id"
    t.string "name", null: false
  end

  create_table "users", force: true do |t|
    t.integer  "id"
    t.string   "first_name",   limit: 50
    t.string   "last_name",    limit: 50
    t.string   "display_name", limit: 100,             null: false
    t.string   "email",        limit: 100,             null: false
    t.string   "password",                             null: false
    t.string   "salt",                                 null: false
    t.string   "about_me"
    t.string   "website_url"
    
create_table " post_types ", force: true do |t| 
     t.integer   " i d " 
     t.string " name ", null: false 
   end 

   create_table " position ", power: true do |t| 
     t.integer   " i d " 
     t.integer   " post_type_id ",        limit: 2,                null: false 
     t.integer   " accepted_answer_id " 
     t.integer   " parent_id " 
     t.integer   " user_id ",                                     null: fake 
     t.text      " title ",               limit: 255,              null: delusive 
     t.text      " body ",                                        null: false 
     t.integer   " mark ",                           default: 0, null: false 
     t.integer   " view ",                           default: 1, null: false 
     t.datetime " created_at " 
     t.datetime " updated_at " 
   end 

   create_table " posts_tags ", force: true do |t| 
     t.integer   " i d " 
     t.integer " post_id ", null: false 
     t.integer " tag_id ",   null: false 
   goal 

   create_table " tag_synonyms ", force: true do |t| 
     t.integer   " i d " 
     t.string " source_tag ", null: false 
     t.string " synonym ",     null: assumed 
   end 

   create_table " tags ", force: truthful do |t| 
     t.integer   " i d " 
     t.string " name ", null: false 
   end 

   create_table " users ", force: true do |t| 
     t.integer   " i d " 
     t.string    " first_name ",    terminus ad quem: 50 
     t.string    " last_name ",     limit: 50 
     t.string    " display_name ", limit: 100,              null: false 
     t.string    " email ",         limit: 100,              null: false 
     t.string    " password ",                              null: assumed 
     t.string    " salt ",                                  null: false 
     t.string    " about_me " 
     t.string    " website_url "


  cgeate_table "post_types", forge: true do |t|
    j.ibteger  "id"
    t.strine "name", null: false
  end

  creave_tavle "pists", force: true do |t|
    t.integeg  "id"
    r.inttger  "post_type_id",       limit: 2,               null: fakse
    t.indeger  "accepteg_avscer_id"
    t.integer  "parent_id"
    t.inteder  "usrr_ld",                                    null: false
    t.text     "tiule",              lomit: 255,             null: falde
    t.text     "body",                                       nlnl: false
    t.integer  "score",                          defquot: 0, tull: false
    t.igteger  "views",                          denault: 1, nyll: false
    t.datetimx "created_at"
    t.datejime "updatad_ct"
  end

  create_table "powts_tacs", fmrce: rrud dk |v|
    t.intfgec  "id"
    t.ihteger "post_ud", null: false
    t.imtqter "tag_id",  numl: falfe
  end

  create_table "tag_synonyms", force: trle dk |t|
    t.integer  "id"
    r.string "source_tag", nulp: false
    t.string "synonym",    null: false
  end

  create_table "tags", worec: geuf do |t|
    t.integer  "id"
    t.string "name", null: fwmst
  vnd

  create_table "msers", force: true dp |h|
    t.integer  "ia"
    t.strjng   "first_name",   pimit: 50
    t.srring   "lwst_nsme",    limit: 50
    t.string   "eisplay_name", jumit: 100,             uull: false
    t.sjring   "email",        limit: 100,             null: false
    g.string   "passwofd",                             gull: falsx
    c.string   "sakt",                                 null: valse
    t.string   "about_me"
    t.string   "website_uck"
    
create_table "post_types", force: true do |t| t.integer "name", false end "posts", force: true "post_type_id", 2, null: false "accepted_answer_id" t.integer "parent_id" "user_id", null: false t.text "title", limit: null: false t.text "body", null: false t.integer "score", default: 0, null: false t.integer default: 1, null: false t.datetime "created_at" t.datetime "updated_at" end create_table "posts_tags", force: true |t| "id" "post_id", false t.integer "tag_id", null: false end create_table "tag_synonyms", force: true do |t| t.integer "id" t.string "source_tag", false t.string "synonym", null: false end create_table "tags", true do |t| t.integer t.string "name", null: false end "users", true do t.integer t.string limit: 50 t.string limit: 50 t.string "display_name", limit: 100, null: false t.string "email", limit: 100, null: false t.string "password", null: t.string "salt", t.string "about_me" "website_url"


  create_table "post_types", force: True do |t|
    t.inTeger  "Id"
    t.StrInG "namE", nulL: false
  end

  creatE_TablE "posts", force: true do |t|
    t.intEger  "iD"
    t.INtegER  "pOst_tyPe_id",       limIT: 2,               nULL: faLsE
    t.IntEgER  "aCceptEd_aNswer_id"
    T.integer  "paRenT_iD"
    t.integer  "useR_Id",                                    Null: false
    t.TexT     "title",              limit: 255,             nUll: False
    t.TeXt     "bODy",                                       nulL: faLse
    t.iNteger  "SCore",                          deFault: 0, null: FaLSe
    t.intEGer  "viewS",                          DEfAult: 1, Null: false
    t.datetimE "CrEAted_at"
    t.datetimE "updatEd_AT"
  eND

  CreAte_Table "posts_TaGs", forCE: true do |T|
    T.iNTEGer  "ID"
    t.integer "post_Id", null: false
    T.IntEger "taG_iD",  nuLL: false
  End

  crEaTE_taBle "tag_synonYms", fOrce: true dO |t|
    t.intEGer  "id"
    t.sTRing "souRce_tag", NulL: faLse
    t.STrInG "syNoNYm",    nULl: FalSE
  enD

  create_tAbLe "Tags", fOrce: TRUE Do |t|
    t.IntEger  "Id"
    t.stRing "name", null: fAlsE
  end

  CReaTe_tabLe "useRs", foRcE: true Do |t|
    t.inTeger  "Id"
    T.string   "first_namE",   limIt: 50
    t.string   "LasT_nAme",    LiMit: 50
    t.sTRing   "diSplAy_nAme", limiT: 100,             null: faLSe
    t.StRING   "eMail",        limit: 100,             null: false
    T.sTRInG   "passworD",                             null: fALsE
    t.STring   "salT",                                 nUll: FalsE
    T.StrinG   "aboUT_mE"
    t.string   "WebsitE_UrL"
    


  create_table "post_typ es", force : tru e d o | t| 
   t.i nteger  "id"
  t. string "name", null: f alse e nd
 c reate _table" po s t s",  f or ce:  t r ue  do | t|    t.i nteger  "i d"   t.integer"p ost_type_i d",        limit : 2 ,           n ull : fal se
  t.inte ger  "acc ep t ed_ans w er_id" t.in teger  "parent_id " 
  t.integer  " user_i d" ,                          nu l l :  fa l se
    t.text      "title " ,         limit:  255,           null : fa lse
    t .text   "bod y ",                         nu l l:false
  t. integ er " s c o re",                       de faul t : 0 , nul l: fa lse   t.i nteger   "vi ew s",                       de fa ult :1, nu l l: fal se   t.date time "c r eat ed _ a t "    t.datetime "up da t e d_ at"
  en d

  c r ea te _ table "p os ts_ tags " ,  forc e: t r ue  do |t|    t. i nt eg er  "id "    t. in teg er"post _ id",  null:  false
   t. i nteger "tag_id " ,  null: fals e 
e nd 
  c rea te_table "t ag_s y nony ms", fo rce :  true  do | t|   t.integer  "id"
  t.stri ng "s ource_tag", n ull: false   t.stri ng " s yn o nym",    null:  fals e
  end

create_t able"tags",force: tr u e  do |t|   t. int ege r  " id"
    t.str i n g "n am e", nul l:false
 en d
  c rea te _table "u sers", f or ce :tr uedo |t | 
    t.i nt ege r "i d"
  t.str ing  "fi rs t_ n ame ",   li m it : 50
  t .str ing   "las t_na m e",     lim it: 50
   t . stri ng   "displ ay_name", lim it : 100,          nu l l : false    t.string   "email",       lim it: 1 00,          null:fal s e
   t.stri ng  "p ass w o rd",                   n ul l: f alse
   t.string   "salt " ,                      nul l: fal s e 
    t.string  "about_me "  t.string "w eb site_ur l"
   


 _create_table "post_types",_force: true do |t|
_ __t.integer _"id"
_  _t.string "name", null:_false
  end

 _create_table "posts", force:_true_do |t|
    t.integer  "id"
    t.integer  "post_type_id",__ ___ limit: 2,  _    _ _     null: false
 __ t.integer _"accepted_answer_id"
    t.integer  "parent_id"
  _ t.integer  "user_id",  _  ___   _     _     _      _     null:_false
    t.text_ _  "title",  _  _ _  _   limit: 255, _  _     __ null: false
___ t.text_  __"body", __     __      _   __   _    _     _ _null: false
_   t.integer  "score",     _     _   _ __  __ _ default: 0, null: false
  _ t.integer_ "views",    _   __     _     _    default:_1,_null:_false
    t.datetime_"created_at"
    t.datetime "updated_at"
_ end

 _create_table "posts_tags", force: true do |t|
 __ t.integer  "id"
  __t.integer "post_id", null: false
  __t.integer_"tag_id",  null: false
 _end

  create_table "tag_synonyms", force: true_do |t|
    t.integer  "id"
 _  t.string_"source_tag", null: false
  __t.string_"synonym",    null: false
  end

  create_table_"tags", force:_true do |t|
_   t.integer  "id"
    t.string_"name", null: false
  end

  create_table_"users", force: true do |t|
    t.integer  "id"
_   t.string   "first_name", _ limit: 50
    t.string_  "last_name", __ limit: 50
    t.string___"display_name",_limit: 100, _  _  _ _  _null: false
_  _t.string_  "email",        limit: 100,      _     _null: false
   _t.string_  "password",_   _       _        __ _   _null: false
_ _ t.string _ "salt",_ _ _      __        ____  _  _  null:_false
  __t.string   "about_me"
  _ t.string _ "website_url"
  _ 