Sha256: 8691e7f7ff94e8bc4a1f647c0ea912aa47589568416cefeda8f28e777bf5d791

Contents?: true

Size: 295 Bytes

Versions: 2

Compression:

Stored size: 295 Bytes

Contents

class CreateContentTypes < ActiveRecord::Migration
  def self.up
    create_table :content_types do |t|
      t.string :name
      t.belongs_to :content_type_group
      t.integer :priority, :default => 2
      t.timestamps
    end
  end

  def self.down
    drop_table :content_types
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
nate-browsercms-3.0.210 db/migrate/20080815014737_create_content_types.rb
nate-browsercms-3.0.211 db/migrate/20080815014737_create_content_types.rb