clarion/db/migrate/20150417004249_remove_unneeded_columns_from_events.rb

13 lines
487 B
Ruby
Raw Normal View History

class RemoveUnneededColumnsFromEvents < ActiveRecord::Migration
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