Allow multiple pinned statuses to be shown and make them be ordered b… (#4690)
* Allow multiple pinned statuses to be shown and make them be ordered by pinned date * Set timestamps NOT NULL * Make single-line pinned_statuses * Spec for pinned_statuses * Remove redundant empty line
This commit is contained in:
parent
fb8aa2b3ba
commit
c2af138113
6 changed files with 27 additions and 3 deletions
|
@ -0,0 +1,5 @@
|
|||
class AddTimestampsToStatusPins < ActiveRecord::Migration[5.1]
|
||||
def change
|
||||
add_timestamps :status_pins, null: false, default: -> { 'CURRENT_TIMESTAMP' }
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue