Use Date instead of Datetime. Nobody cares about the exact hour.

This commit is contained in:
Adam Niedzielski 2016-08-04 08:07:23 +02:00
parent 419990ebd2
commit d95fd3cb99
2 changed files with 2 additions and 2 deletions

View file

@ -24,6 +24,6 @@ class AddExpiresAtToMember < ActiveRecord::Migration
# disable_ddl_transaction!
def change
add_column :members, :expires_at, :datetime
add_column :members, :expires_at, :date
end
end

View file

@ -581,7 +581,7 @@ ActiveRecord::Schema.define(version: 20160801163421) do
t.string "invite_token"
t.datetime "invite_accepted_at"
t.datetime "requested_at"
t.datetime "expires_at"
t.date "expires_at"
end
add_index "members", ["access_level"], name: "index_members_on_access_level", using: :btree