Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 5a91c58a72
Fetching contributors…

Cannot retrieve contributors at this time

34 lines (31 sloc) 1.243 kb
# Version: OSDV Public License 1.2
# The contents of this file are subject to the OSDV Public License
# Version 1.2 (the "License"); you may not use this file except in
# compliance with the License. You may obtain a copy of the License at
# Software distributed under the License is distributed on an "AS IS"
# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
# See the License for the specific language governing rights and limitations
# under the License.
# The Original Code is:
# TTV UOCAVA Ballot Portal.
# The Initial Developer of the Original Code is:
# Open Source Digital Voting Foundation.
# Portions created by Open Source Digital Voting Foundation are Copyright (C) 2010.
# All Rights Reserved.
# Contributors: Paul Stenbjorn, Aleksey Gureiev, Robin Bahr,
# Thomas Gaskin, Sean Durham, John Sebes.
class AddAddressFieldsToRegistrations < ActiveRecord::Migration
def self.up
add_column :registrations, :address, :string
add_column :registrations, :city, :string
add_column :registrations, :state, :string
def self.down
remove_column :registrations, :state
remove_column :registrations, :city
remove_column :registrations, :address
Jump to Line
Something went wrong with that request. Please try again.