qi6_app/db/migrate/0070_create_portlets.rb
2019-05-17 12:30:45 +02:00

20 lines
336 B
Ruby

# -*- encoding : utf-8 -*-
class CreatePortlets < ActiveRecord::Migration[6.0]
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