ref: master
db/migrate/001_add_design_support.rb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
class AddDesignSupport < ActiveRecord::Migration def self.up create_table :boxes do |t| t.column :owner_type, :string t.column :owner_id, :integer # acts_as_list t.column :position, :integer end create_table :blocks do |t| t.column :title, :string t.column :box_id, :integer t.column :type, :string t.column :settings, :text # acts_as_list t.column :position, :integer end end def self.down drop_table :boxes drop_table :blocks end end |