18 lines
336 B
Ruby
18 lines
336 B
Ruby
# -*- encoding : utf-8 -*-
|
|
class CreateTextContents < ActiveRecord::Migration
|
|
def self.up
|
|
create_table :text_contents do |t|
|
|
t.string :style
|
|
t.text :content
|
|
|
|
t.timestamps
|
|
end
|
|
|
|
ContentType.create(:slug => "TextContent", :name => "Texte")
|
|
end
|
|
|
|
def self.down
|
|
drop_table :text_contents
|
|
end
|
|
end
|