Implement a click-to-view spoiler system
This commit is contained in:
parent
1761d3f9c3
commit
bf0f6eb62d
18 changed files with 192 additions and 77 deletions
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
|
Loading…
Add table
Add a link
Reference in a new issue