add janitor trials
This commit is contained in:
@@ -0,0 +1,3 @@
|
|||||||
|
class JanitorTrial < ActiveRecord::Base
|
||||||
|
belongs_to :user
|
||||||
|
end
|
||||||
@@ -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
|
||||||
Vendored
+11
@@ -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
|
||||||
@@ -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
|
||||||
Reference in New Issue
Block a user