0
0
Fork 0
mirror of https://github.com/lunaisnotaboy/mastodon.git synced 2024-12-14 01:15:16 +00:00
mastodon/db/migrate/20170824103029_add_timestamps_to_status_pins.rb
nullkal c2af138113 Allow multiple pinned statuses to be shown and make them be ordered b… ()
* 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
2017-08-25 18:50:52 +02:00

6 lines
168 B
Ruby

class AddTimestampsToStatusPins < ActiveRecord::Migration[5.1]
def change
add_timestamps :status_pins, null: false, default: -> { 'CURRENT_TIMESTAMP' }
end
end