17 lines
339 B
Ruby
17 lines
339 B
Ruby
# -*- encoding : utf-8 -*-
|
|
class CreateHtmlContents < ActiveRecord::Migration
|
|
def self.up
|
|
create_table :html_contents do |t|
|
|
t.text :content
|
|
t.string :style
|
|
t.timestamps
|
|
end
|
|
|
|
ContentType.create(:slug => "HtmlContent", :name => "Code HTML")
|
|
end
|
|
|
|
def self.down
|
|
drop_table :html_contents
|
|
end
|
|
end
|