clarion/db/migrate/20151021162134_create_volunteers.rb

21 lines
461 B
Ruby
Raw Normal View History

2015-10-21 23:13:39 +03:00
class CreateVolunteers < ActiveRecord::Migration
def change
create_table :volunteers do |t|
t.string :name
t.string :picture_id
t.string :email
t.string :unique_id
t.string :phone
t.string :tshirt_size
t.string :tshirt_cut
t.string :food_preferences
t.text :previous_experience
t.text :notes
t.timestamps null: false
end
add_index :volunteers, :unique_id, unique: true
end
end