Class: CreateGalleries

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/carrierwave_gallery/install/templates/create_galleries.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
9
10
11
# File 'lib/generators/carrierwave_gallery/install/templates/create_galleries.rb', line 2

def change
  create_table :galleries do |t|
    t.string :title
    t.string :slug
    t.text :description
    t.string :image

    t.timestamps null: false
  end
end