Implement a click-to-view spoiler system
This commit is contained in:
5
db/migrate/20170112041538_add_spoiler_to_statuses.rb
Normal file
5
db/migrate/20170112041538_add_spoiler_to_statuses.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
class AddSpoilerToStatuses < ActiveRecord::Migration[5.0]
|
||||
def change
|
||||
add_column :statuses, :spoiler, :boolean, default: false
|
||||
end
|
||||
end
|
@@ -0,0 +1,5 @@
|
||||
class AddSpoilerTextToStatuses < ActiveRecord::Migration[5.0]
|
||||
def change
|
||||
add_column :statuses, :spoiler_text, :text, default: ""
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user