Commit b02ae59149964e11ebdc133440e6ace338ed4a2a

removed sessions migration and added Project migration

Commit diff

db/migrate/002_create_projects.rb

 
1class CreateProjects < ActiveRecord::Migration
2 def self.up
3 create_table :projects do |t|
4 t.column :name, :string
5 t.column :description, :text
6 t.column :user_id, :integer
7 t.column :created_at, :datetime
8 t.column :updated_at, :datetime
9 end
10
11 add_index :projects, :name
12 add_index :projects, :user_id
13 end
14
15 def self.down
16 drop_table :projects
17 end
18end
toggle raw diff

db/migrate/003_create_projects.rb

 
1class CreateProjects < ActiveRecord::Migration
2 def self.up
3 create_table :projects do |t|
4 t.column :name, :string
5 t.column :description, :text
6 t.column :user_id, :integer
7 t.column :created_at, :datetime
8 t.column :updated_at, :datetime
9 end
10 end
11
12 def self.down
13 drop_table :projects
14 end
15end
toggle raw diff