maisonarbre_app/db/migrate/0079_create_break_contents.rb
Nicolas Bally 1fa250e0e4 Initial
2011-07-15 12:29:09 +02:00

18 lines
369 B
Ruby

# -*- encoding : utf-8 -*-
class CreateBreakContents < ActiveRecord::Migration
def self.up
create_table :break_contents do |t|
t.boolean :line
t.integer :height
t.string :style
t.timestamps
end
ContentType.create(:slug => "BreakContent", :name => "Séparation")
end
def self.down
drop_table :break_contents
end
end