Merge commit '4aea3f88a6d30f102a79c2da7fcfac96465ba1a8' into merging-upstream
This commit is contained in:
10
db/migrate/20170913000752_create_site_uploads.rb
Normal file
10
db/migrate/20170913000752_create_site_uploads.rb
Normal file
@ -0,0 +1,10 @@
|
||||
class CreateSiteUploads < ActiveRecord::Migration[5.1]
|
||||
def change
|
||||
create_table :site_uploads do |t|
|
||||
t.string :var, default: '', null: false, index: { unique: true }
|
||||
t.attachment :file
|
||||
t.json :meta
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
13
db/migrate/20170917153509_create_custom_emojis.rb
Normal file
13
db/migrate/20170917153509_create_custom_emojis.rb
Normal file
@ -0,0 +1,13 @@
|
||||
class CreateCustomEmojis < ActiveRecord::Migration[5.1]
|
||||
def change
|
||||
create_table :custom_emojis do |t|
|
||||
t.string :shortcode, null: false, default: ''
|
||||
t.string :domain
|
||||
t.attachment :image
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
add_index :custom_emojis, [:shortcode, :domain], unique: true
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user