2019-04-28 11:56:16 +03:00
|
|
|
class RemoveUnneededColumnsFromEvents < ActiveRecord::Migration[4.2]
|
2015-04-17 03:51:46 +03:00
|
|
|
def change
|
|
|
|
remove_index :events, name: :index_events_on_track_id, column: :track_id
|
|
|
|
remove_index :events, name: :index_events_on_type, column: :type
|
|
|
|
remove_index :events, name: :index_events_on_user_id, column: :user_id
|
|
|
|
|
|
|
|
remove_column :events, :type, :string
|
|
|
|
remove_column :events, :state, :string
|
|
|
|
remove_column :events, :track_id, :integer
|
|
|
|
remove_column :events, :user_id, :integer
|
|
|
|
end
|
|
|
|
end
|