karim_app/db/migrate/0065_create_blocks.rb
Nicolas Bally a0a3cfd6fe initial
2018-06-11 01:40:28 +02:00

20 lines
349 B
Ruby

# -*- encoding : utf-8 -*-
class CreateBlocks < ActiveRecord::Migration
def self.up
create_table :blocks do |t|
t.references :lang_site
t.string :block_name
t.string :blockable_type
t.integer :blockable_id
t.text :content
t.timestamps
end
end
def self.down
drop_table :blocks
end
end