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,3 @@
class JanitorTrial < ActiveRecord::Base
belongs_to :user
end

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

11
test/fixtures/janitor_trials.yml vendored Normal file
View File

@ -0,0 +1,11 @@
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
# This model initially had no columns defined. If you add columns to the
# model remove the '{}' from the fixture names and add the columns immediately
# below each fixture, per the syntax in the comments below
#
one: {}
# column: value
#
two: {}
# column: value

View File

@ -0,0 +1,8 @@
require 'test_helper'
class JanitorTrialTest < ActiveSupport::TestCase
# Replace this with your real tests.
test "the truth" do
assert true
end
end