2011-05-17 06:30:32 +08:00
|
|
|
class CreateDelayedJobsTestStory < ActiveRecord::Migration
|
2015-11-05 05:38:51 +08:00
|
|
|
tag :predeploy
|
|
|
|
|
2011-05-17 06:30:32 +08:00
|
|
|
def self.up
|
|
|
|
if Rails.env.test?
|
|
|
|
create_table :stories do |table|
|
|
|
|
table.string :text
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.down
|
|
|
|
if Rails.env.test?
|
|
|
|
drop_table :stories
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|