Progress
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
class AddIsFlaggedAsSpamToAccounts < ActiveRecord::Migration[5.2]
|
||||
def up
|
||||
safety_assured { add_column :accounts, :is_flagged_as_spam, :bool, default: false, null: false }
|
||||
end
|
||||
|
||||
def down
|
||||
remove_column :accounts, :is_pro
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,10 @@
|
||||
class CreateStatusBookmarkCollections < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
create_table :status_bookmark_collections do |t|
|
||||
t.text :title, null: false, default: ''
|
||||
t.integer :account_id, null: false
|
||||
|
||||
t.timestamps null: false
|
||||
end
|
||||
end
|
||||
end
|
||||
12
db/migrate/20201214051720_create_media_attachment_albums.rb
Normal file
12
db/migrate/20201214051720_create_media_attachment_albums.rb
Normal file
@@ -0,0 +1,12 @@
|
||||
class CreateMediaAttachmentAlbums < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
create_table :media_attachment_albums do |t|
|
||||
t.text :title, null: false, default: ''
|
||||
t.text :description
|
||||
t.integer :account_id, null: false
|
||||
t.integer :visibility, null: false, default: 0
|
||||
|
||||
t.timestamps null: false
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,7 @@
|
||||
class AddStatusBookmarkCollectionIdToStatusBookmarks < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
safety_assured {
|
||||
add_reference :status_bookmarks, :status_bookmark_collection, foreign_key: { on_delete: :nullify }
|
||||
}
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,7 @@
|
||||
class AddAlbumIdToMediaAttachments < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
safety_assured {
|
||||
add_reference :media_attachments, :media_attachment_album, foreign_key: { on_delete: :nullify }
|
||||
}
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,7 @@
|
||||
class AddCoverIdToMediaAttachmentAlbums < ActiveRecord::Migration[5.2]
|
||||
disable_ddl_transaction!
|
||||
|
||||
def change
|
||||
add_reference :media_attachment_albums, :cover, null: true, default: nil, index: { algorithm: :concurrently }
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user