Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(17)

Side by Side Diff: db/migrate/003_admin_flag_and_settings_table.rb

Issue 2323: Upgrade to Rails 2 SVN Base: http://familyconnect.rubyforge.org/svn/trunk/
Patch Set: Created 1 year, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 class AdminFlagAndSettingsTable < ActiveRecord::Migration
2 def self.up
3 add_column :users, :admin, :boolean
4 create_table :settings do |t|
5 t.column :name, :string
6 t.column :value, :text
7 end
8 end
9
10 def self.down
11 drop_table :settings
12 remove_column :users, :admin
13 end
14 end
OLDNEW

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld r497