Sha256: b3ad2b4edb1cb77f35ae7ad059dfa4bf22933a5ecb2a1a705063f68d2663eb51

Contents?: true

Size: 231 Bytes

Versions: 33

Compression:

Stored size: 231 Bytes

Contents

class <%= name.camelize %> < ActiveRecord::Migration
  def self.up  
    create_table :users do |t|
      t.string  :name
      t.integer :age
      t.boolean :admin
    end
  end

  def self.down
    drop_table :users  
  end

end

Version data entries

33 entries across 33 versions & 2 rubygems

Version Path
migration_assist-0.4.0 spec/generators/migration/templates/create_users.erb
generator-spec-0.7.8 spec/generator_spec/fixtures/generators/migration/templates/create_users.erb
migration_assist-0.3.1 spec/generators/migration/templates/create_users.erb
migration_assist-0.3.0 spec/generators/migration/templates/create_users.erb
generator-spec-0.7.6 spec/generator_spec/fixtures/generators/migration/templates/create_users.erb
generator-spec-0.7.5 spec/generator_spec/fixtures/generators/migration/templates/create_users.erb
generator-spec-0.7.4 spec/generator_spec/fixtures/generators/migration/templates/create_users.erb
migration_assist-0.2.0 spec/generators/migration/templates/create_users.erb
migration_assist-0.1.8 lib/generators/migration/templates/create_users.erb
generator-spec-0.7.2 spec/generator_spec/fixtures/generators/migration/templates/create_users.erb
generator-spec-0.7.1 spec/generator_spec/fixtures/generators/migration/templates/create_users.erb
generator-spec-0.7.0 lib/generators/migration/templates/create_users.erb
migration_assist-0.1.7 lib/generators/migration/templates/create_users.erb
migration_assist-0.1.6 lib/generators/migration/templates/create_users.erb
migration_assist-0.1.5 lib/generators/migration/templates/create_users.erb
generator-spec-0.6.6 lib/generators/migration/templates/create_users.erb
generator-spec-0.6.5 lib/generators/migration/templates/create_users.erb
migration_assist-0.1.4 lib/generators/migration/templates/create_users.erb
generator-spec-0.6.4 lib/generators/migration/templates/create_users.erb
generator-spec-0.6.3 lib/generators/migration/templates/create_users.erb