negos_app/db/migrate/0070_create_portlets.rb
Nicolas Bally 772e87ffb7 initial
2015-11-14 00:08:54 +01:00

20 lines
331 B
Ruby

# -*- encoding : utf-8 -*-
class CreatePortlets < ActiveRecord::Migration
def self.up
create_table :portlets do |t|
t.references :block
t.integer :content_id
t.string :content_type
t.integer :position
t.timestamps
end
end
def self.down
drop_table :portlets
end
end