Sha256: 37ed39d3e024a8627023dee27d17112fd1eb324c7d0bda3ea1802b9a8db97921

Contents?: true

Size: 299 Bytes

Versions: 1

Compression:

Stored size: 299 Bytes

Contents

class CreateParentModels < ActiveRecord::Migration
  def self.up
    create_table :parent_models do |t|
      t.string :first_name
      t.string :last_name
      t.string :address
      t.boolean :some_flag

      t.timestamps
    end
  end

  def self.down
    drop_table :parent_models
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
view_mapper-0.3.4 test/views/has_many/expected_templates/create_parent_models.rb