Skip to content
This repository was archived by the owner on Mar 21, 2019. It is now read-only.

Commit d6bb46e

Browse files
committed
whoops. default was false
1 parent 569477c commit d6bb46e

6 files changed

+15
-15
lines changed

db/migrate/20130126215239_create_users.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ def change
55
t.string :referral_code
66
t.integer :referrer_id
77

8-
t.timestamps null: true
8+
t.timestamps null: false
99
end
1010
end
1111
end

db/migrate/20130127063936_devise_create_admin_users.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def change
4040
# t.string :authentication_token
4141

4242

43-
t.timestamps null: true
43+
t.timestamps null: false
4444
end
4545

4646
add_index :admin_users, :email, :unique => true

db/migrate/20130127063939_create_admin_notes.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ def self.up
55
t.string :resource_type, :null => false
66
t.references :admin_user, :polymorphic => true
77
t.text :body
8-
t.timestamps null: true
8+
t.timestamps null: false
99
end
1010
add_index :admin_notes, [:resource_type, :resource_id]
1111
add_index :admin_notes, [:admin_user_type, :admin_user_id]

db/migrate/20130227185712_create_delayed_jobs.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def self.up
1010
table.datetime :failed_at # Set when all retries have failed (actually, by default, the record is deleted instead)
1111
table.string :locked_by # Who is working on this object (if locked)
1212
table.string :queue # The name of the queue this job is in
13-
table.timestamps null: true
13+
table.timestamps null: false
1414
end
1515

1616
add_index :delayed_jobs, [:priority, :run_at], :name => 'delayed_jobs_priority'

db/migrate/20130312045541_create_ip_addresses.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ def change
44
t.string :address
55
t.integer :count
66

7-
t.timestamps null: true
7+
t.timestamps null: false
88
end
99
end
1010
end

db/schema.rb

+10-10
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
t.integer "author_id"
2323
t.string "author_type"
2424
t.text "body"
25-
t.datetime "created_at"
26-
t.datetime "updated_at"
25+
t.datetime "created_at", null: false
26+
t.datetime "updated_at", null: false
2727
t.string "namespace"
2828
end
2929

@@ -42,8 +42,8 @@
4242
t.datetime "last_sign_in_at"
4343
t.string "current_sign_in_ip"
4444
t.string "last_sign_in_ip"
45-
t.datetime "created_at"
46-
t.datetime "updated_at"
45+
t.datetime "created_at", null: false
46+
t.datetime "updated_at", null: false
4747
end
4848

4949
add_index "admin_users", ["email"], name: "index_admin_users_on_email", unique: true, using: :btree
@@ -59,25 +59,25 @@
5959
t.datetime "failed_at"
6060
t.string "locked_by"
6161
t.string "queue"
62-
t.datetime "created_at"
63-
t.datetime "updated_at"
62+
t.datetime "created_at", null: false
63+
t.datetime "updated_at", null: false
6464
end
6565

6666
add_index "delayed_jobs", ["priority", "run_at"], name: "delayed_jobs_priority", using: :btree
6767

6868
create_table "ip_addresses", force: :cascade do |t|
6969
t.string "address"
7070
t.integer "count"
71-
t.datetime "created_at"
72-
t.datetime "updated_at"
71+
t.datetime "created_at", null: false
72+
t.datetime "updated_at", null: false
7373
end
7474

7575
create_table "users", force: :cascade do |t|
7676
t.string "email"
7777
t.string "referral_code"
7878
t.integer "referrer_id"
79-
t.datetime "created_at"
80-
t.datetime "updated_at"
79+
t.datetime "created_at", null: false
80+
t.datetime "updated_at", null: false
8181
end
8282

8383
end

0 commit comments

Comments
 (0)