summaryrefslogtreecommitdiff
path: root/db/migrate/20140617183702_create_users.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20140617183702_create_users.rb')
-rw-r--r--db/migrate/20140617183702_create_users.rb26
1 files changed, 26 insertions, 0 deletions
diff --git a/db/migrate/20140617183702_create_users.rb b/db/migrate/20140617183702_create_users.rb
new file mode 100644
index 0000000..1fefaf9
--- /dev/null
+++ b/db/migrate/20140617183702_create_users.rb
@@ -0,0 +1,26 @@
+class CreateUsers < ActiveRecord::Migration
+ def change
+ create_table :users do |t|
+ t.string :uuid, null: false
+ t.string :name, null: false
+ t.string :password_digest, null: false
+ t.string :ign, null: false
+ t.string :email, null: false
+ t.text :about
+ t.string :last_ip
+ t.string :skype
+ t.boolean :skype_public, default: false
+ t.string :youtube
+ t.string :youtube_channelname
+ t.string :twitter
+ t.boolean :donor, default: false
+ t.string :email_token
+ t.boolean :confirmed, default: false
+ t.datetime :last_seen
+
+ t.references :role, null: false, default: Role.get(:normal)
+
+ t.timestamps null: true
+ end
+ end
+end \ No newline at end of file