Files
componentowl-rails-archive/db/migrate/20100819140017_create_subtemplates.rb

16 lines
321 B
Ruby

class CreateSubtemplates < ActiveRecord::Migration
def self.up
create_table :subtemplates do |t|
t.integer :subtemplate_type_id, :references => :allowed_values
t.string :name
t.text :content
t.timestamps
end
end
def self.down
drop_table :subtemplates
end
end