Sha256: e33806ef87ff2270f6d461b584152ab7800d09b568f3e943ae3f68a7f33af521

Contents?: true

Size: 365 Bytes

Versions: 5

Compression:

Stored size: 365 Bytes

Contents

class FreeberryCreatePages < ActiveRecord::Migration
  def self.up
    create_table :pages do |t|
      t.string    :title, :null => false
      t.text      :content
      t.integer   :structure_id, :null => false
      
      t.timestamps
    end
    
    add_index :pages, :structure_id, :name => "fk_pages"
  end

  def self.down
    drop_table :pages
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
freeberry-0.3.0 lib/generators/freeberry/models/templates/create_pages.rb
freeberry-0.2.9 lib/generators/freeberry/models/templates/create_pages.rb
freeberry-0.2.7 lib/generators/freeberry/models/templates/create_pages.rb
freeberry-0.2.6 lib/generators/freeberry/models/templates/create_pages.rb
freeberry-0.2.5 lib/generators/freeberry/models/templates/create_pages.rb