Class: CreateDodgyStalkerTables

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/dodgy_stalker/templates/migration.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'lib/generators/dodgy_stalker/templates/migration.rb', line 2

def change
   create_table "wordlist", force: true do |t| 
     t.string   "word"
     t.boolean  "ban"
     t.boolean  "notify"
     t.boolean  "hold"
     t.string   "regexp_word"
     t.boolean  "blacklist_email", default: false
     t.datetime "created_at",                      null: false
     t.datetime "updated_at",                      null: false
   end

   create_table "whitelist", force: true do |t| 
     t.string   "username"
     t.string   "email"
     t.string   "ip_address"
     t.string   "twitter_uid"
     t.string   "google_uid"
     t.string   "facebook_uid"
     t.datetime "created_at",   null: false
     t.datetime "updated_at",   null: false
   end

   create_table "blacklist", force: true do |t|
     t.string   "username"
     t.string   "email"
     t.string   "ip_address"
     t.string   "twitter_uid"
     t.string   "google_uid"
     t.string   "facebook_uid"
     t.datetime "created_at",   null: false
     t.datetime "updated_at",   null: false
   end
end