many things, comments working.

This commit is contained in:
jomo
2013-06-24 13:29:39 +02:00
parent 7a894f4f6a
commit fb52e8bed2
44 changed files with 490 additions and 223 deletions

View File

@@ -1,6 +1,6 @@
class CreateUsers < ActiveRecord::Migration
def change
create_table :users do |t|
create_table :users do |t|
t.string :name, :unique => true, :null => false
t.string :ign, :unique => true, :null => false
t.integer :rank, :default => 10, :null => false
@@ -9,6 +9,10 @@ class CreateUsers < ActiveRecord::Migration
t.text :about
t.string :password_digest, :null => false
t.string :last_ip
t.string :skype
t.boolean :skype_public, :default => false
t.datetime :last_login
t.datetime :last_active
t.timestamps
end

View File

@@ -3,7 +3,7 @@ class CreateBlogposts < ActiveRecord::Migration
create_table :blogposts do |t|
t.string :title
t.text :text
t.integer :user_id
t.references :user
t.timestamps
end

View File

@@ -3,7 +3,7 @@ class CreateComments < ActiveRecord::Migration
create_table :comments do |t|
t.text :text
t.integer :user_id
t.integer :blogpost_id
t.references :blogpost
t.timestamps
end