2013-02-06 03:16:51 +08:00
|
|
|
class CreateUsers < ActiveRecord::Migration
|
|
|
|
def change
|
|
|
|
create_table :users do |t|
|
2013-03-23 23:02:59 +08:00
|
|
|
t.string :username, limit: 20, null: false
|
2013-02-06 03:16:51 +08:00
|
|
|
t.string :avatar_url, null: false
|
|
|
|
t.timestamps
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|