heylium_app/db/migrate/0065_create_blocks.rb
Nicolas Bally 8e18de4077 initial
2016-08-03 00:22:29 +02:00

20 lines
349 B
Ruby
Executable File

# -*- 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