Class: CreateImageTypes

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
pages/db/migrate/11_create_image_types.rb

Class Method Summary collapse

Class Method Details

.downObject



13
14
15
# File 'pages/db/migrate/11_create_image_types.rb', line 13

def self.down
  drop_table ConstructorPages::Types::ImageType.table_name
end

.upObject



2
3
4
5
6
7
8
9
10
11
# File 'pages/db/migrate/11_create_image_types.rb', line 2

def self.up
  create_table ConstructorPages::Types::ImageType.table_name do |t|
    t.string :value_uid
    t.string  :value_name
    t.references :field
    t.references :page

    t.timestamps
  end
end