Sha256: d38bbf2259e5f8829975eda12a1c61ccee6fafe80c374d6835355c2723fde441

Contents?: true

Size: 391 Bytes

Versions: 12

Compression:

Stored size: 391 Bytes

Contents

class CreateUsers < ActiveRecord::Migration
  def self.up
    create_table :users do |t|
      t.string :email
      t.string :locale, :default => 'en'
      t.string :firstname
      t.string :lastname

      t.timestamps
    end

    User.create! :email => "m@theplant.jp", :firstname => "Michael", :lastname => "He", :locale => "en"
  end

  def self.down
    drop_table :users
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
mail_engine-0.1.15 test/dummy/db/migrate/20110125094530_create_users.rb
mail_engine-0.1.14 test/dummy/db/migrate/20110125094530_create_users.rb
mail_engine-0.1.13 test/dummy/db/migrate/20110125094530_create_users.rb
mail_engine-0.1.12 test/dummy/db/migrate/20110125094530_create_users.rb
mail_engine-0.1.11 test/dummy/db/migrate/20110125094530_create_users.rb
mail_engine-0.1.10 test/dummy/db/migrate/20110125094530_create_users.rb
mail_engine-0.1.9 test/dummy/db/migrate/20110125094530_create_users.rb
mail_engine-0.1.8 test/dummy/db/migrate/20110125094530_create_users.rb
mail_engine-0.1.7 test/dummy/db/migrate/20110125094530_create_users.rb
mail_engine-0.1.6 test/dummy/db/migrate/20110125094530_create_users.rb
mail_engine-0.1.5 test/dummy/db/migrate/20110125094530_create_users.rb
mail_engine-0.1.4 test/dummy/db/migrate/20110125094530_create_users.rb