mirror of
https://github.com/discourse/discourse.git
synced 2026-07-29 15:54:48 -05:00
DEV: Apply syntax_tree formatting to db/*
This commit is contained in:
@@ -5,18 +5,18 @@ class CreateVestalVersions < ActiveRecord::Migration[4.2]
|
||||
create_table :versions do |t|
|
||||
t.belongs_to :versioned, polymorphic: true
|
||||
t.belongs_to :user, polymorphic: true
|
||||
t.string :user_name
|
||||
t.text :modifications
|
||||
t.string :user_name
|
||||
t.text :modifications
|
||||
t.integer :number
|
||||
t.integer :reverted_from
|
||||
t.string :tag
|
||||
t.string :tag
|
||||
|
||||
t.timestamps null: false
|
||||
end
|
||||
|
||||
change_table :versions do |t|
|
||||
t.index [:versioned_id, :versioned_type]
|
||||
t.index [:user_id, :user_type]
|
||||
t.index %i[versioned_id versioned_type]
|
||||
t.index %i[user_id user_type]
|
||||
t.index :user_name
|
||||
t.index :number
|
||||
t.index :tag
|
||||
|
||||
Reference in New Issue
Block a user