Sha256: c5e9ae63665ab7ccc1a7e196e50b26be83176d9de07d63ee9ee594bf7b2247c1

Contents?: true

Size: 247 Bytes

Versions: 4

Compression:

Stored size: 247 Bytes

Contents

class CreateNestedChildren < ActiveRecord::Migration
  def self.up
    create_table :nested_children do |t|
	t.column :field, :string
	t.column :nested_parent_id, :integer
    end
  end

  def self.down
    drop_table :nested_children
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
joinfix-1.0.0 rails/db/migrate/002_create_nested_children.rb
joinfix-0.1.0 rails/db/migrate/002_create_nested_children.rb
joinfix-0.1.1 rails/db/migrate/002_create_nested_children.rb
joinfix-1.0.1 rails/db/migrate/002_create_nested_children.rb