add janitor trials

This commit is contained in:
albert
2010-03-09 16:18:28 -05:00
parent 12afa9b491
commit 188c30eeea
4 changed files with 38 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
class CreateJanitorTrials < ActiveRecord::Migration
def self.up
create_table :janitor_trials do |t|
t.column :user_id, :integer, :null => false
t.column :promoted_at, :datetime
t.column :original_level, :integer, :null => false
t.timestamps
end
add_inex :janitor_trials, :user_id
end
def self.down
drop_table :janitor_trials
end
end