Class: CreateKindeditorImages

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/kindeditor/templates/create_kindeditor_images.rb

Class Method Summary collapse

Class Method Details

.downObject



12
13
14
# File 'lib/generators/kindeditor/templates/create_kindeditor_images.rb', line 12

def self.down
  drop_table :kindeditor_images
end

.upObject



2
3
4
5
6
7
8
9
10
# File 'lib/generators/kindeditor/templates/create_kindeditor_images.rb', line 2

def self.up
  create_table :kindeditor_images do |t|
    t.string :data_file_name
    t.string :data_content_type
    t.integer :data_file_size
    t.datetime :data_updated_at
    t.timestamps
  end
end