Sha256: 7a88355a189c1c1c502222173f12ddc7362128996b00f5a7e78a5b742996708f

Contents?: true

Size: 639 Bytes

Versions: 3

Compression:

Stored size: 639 Bytes

Contents

class CreateContentAssignments < ActiveRecord::Migration
  def self.up
    create_table :content_assignments do |t|
      t.string  :title
      t.integer :ancestor_id # parent_id
      t.integer :target_id # content_id
      t.string  :ancestor_as
      t.string  :target_as
      t.integer :lft
      t.integer :rgt
      t.integer :position
      t.boolean :directed
      t.references :user
      t.references :site
      t.references :section
      t.integer    :approved, :null => false, :default => 0
      t.string  :content_template

      t.timestamps
    end
  end

  def self.down
    drop_table :content_assignments
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
emergent-core-0.1.0 rails_generators/emergent_config/templates/db/migrate/create_content_assignments.rb
emergent-core-0.1.02 rails_generators/emergent_config/templates/db/migrate/create_content_assignments.rb
emergent-core-0.1.01 rails_generators/emergent_config/templates/db/migrate/create_content_assignments.rb