Sha256: fc720927ed72ec65c8489f56512e1ceae59db5d7e200c4acab987be020548f85

Contents?: true

Size: 242 Bytes

Versions: 4

Compression:

Stored size: 242 Bytes

Contents

class CreateNestedParents < ActiveRecord::Migration
  def self.up
    create_table :nested_parents do |t|
	t.column :field, :string
	t.column :inner_child_id, :integer
    end
  end

  def self.down
    drop_table :nested_parents
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
joinfix-0.1.0 rails/db/migrate/001_create_nested_parents.rb
joinfix-0.1.1 rails/db/migrate/001_create_nested_parents.rb
joinfix-1.0.0 rails/db/migrate/001_create_nested_parents.rb
joinfix-1.0.1 rails/db/migrate/001_create_nested_parents.rb