thingspeak/db/migrate/20110513192617_add_fields_to_users.rb
2014-02-17 12:05:39 -05:00

14 lines
342 B
Ruby

class AddFieldsToUsers < ActiveRecord::Migration
def self.up
add_column :users, :public_flag, :boolean, :default => false
add_column :users, :bio, :text
add_column :users, :website, :string
end
def self.down
remove_column :users, :website
remove_column :users, :bio
remove_column :users, :public_flag
end
end