repo.or.cz
/
monkeycharger.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Upgraded Rails and RSpec
[monkeycharger.git]
/
vendor
/
plugins
/
rspec
/
example_rails_app
/
db
/
migrate
/
004_create_mockables.rb
blob
38d0b8b16806e74d27b0fe1db5cd657f19ba45e3
1
class CreateMockables < ActiveRecord::Migration
2
def self.up
3
create_table :mockable_models do |t|
4
end
5
create_table :associated_models do |t|
6
t.column :mockable_model_id, :integer
7
end
8
end
9
10
def self.down
11
drop_table :mockable_models
12
drop_table :associated_models
13
end
14
end
15