16 lines
321 B
Ruby
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
|