Class: CreateKuhsaftLocalizedPages

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/templates/kuhsaft/install/create_kuhsaft_localized_pages.rb

Class Method Summary collapse

Class Method Details

.downObject



16
17
18
# File 'lib/templates/kuhsaft/install/create_kuhsaft_localized_pages.rb', line 16

def self.down
  drop_table :localized_pages
end

.upObject



2
3
4
5
6
7
8
9
10
11
12
13
14
# File 'lib/templates/kuhsaft/install/create_kuhsaft_localized_pages.rb', line 2

def self.up
  create_table :localized_pages do |t|
    t.string :title
    t.string :slug
    t.string :keywords
    t.text :description
    t.text :body
    t.integer :published
    t.string :locale
    t.references :page
    t.timestamps
  end
end