forked from e621ng/e621ng
add janitor trials
This commit is contained in:
parent
12afa9b491
commit
188c30eeea
3
app/models/janitor_trial.rb
Normal file
3
app/models/janitor_trial.rb
Normal file
@ -0,0 +1,3 @@
|
||||
class JanitorTrial < ActiveRecord::Base
|
||||
belongs_to :user
|
||||
end
|
16
db/migrate/20100309211553_create_janitor_trials.rb
Normal file
16
db/migrate/20100309211553_create_janitor_trials.rb
Normal 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
11
test/fixtures/janitor_trials.yml
vendored
Normal 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
|
8
test/unit/janitor_trial_test.rb
Normal file
8
test/unit/janitor_trial_test.rb
Normal 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
|
Loading…
Reference in New Issue
Block a user