Archive: ComponentOwl Rails app, DB backups, go redirect script
This commit is contained in:
15
db/migrate/20100819140017_create_subtemplates.rb
Normal file
15
db/migrate/20100819140017_create_subtemplates.rb
Normal file
@@ -0,0 +1,15 @@
|
||||
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
|
||||
Reference in New Issue
Block a user