Guest User

Untitled

a guest
Nov 20th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. class CreateUsers < ActiveRecord::Migration
  2. def self.up
  3. create_table "users" do |t|
  4. t.column :login, :string, :limit => 40
  5. t.column :name, :string, :limit => 100, :default => '', :null => true
  6. t.column :email, :string, :limit => 100
  7. end
  8.  
  9. def self.down
  10. drop_table "users"
  11. end
  12. end
Add Comment
Please, Sign In to add comment