replaces organization migrations with a new table

This commit is contained in:
kikito
2015-08-13 18:18:49 +02:00
parent a59ef10e44
commit 91804b5f7c
5 changed files with 37 additions and 26 deletions

View File

@@ -1,7 +0,0 @@
class AddOrganizationToUsers < ActiveRecord::Migration
def change
add_column :users, :organization_name, :string, limit: 80
add_column :users, :organization_verified_at, :datetime
add_column :users, :phone_number, :string, limit: 30
end
end

View File

@@ -1,5 +0,0 @@
class AddOrganizationRejectedAtToUsers < ActiveRecord::Migration
def change
add_column :users, :organization_rejected_at, :datetime
end
end

View File

@@ -0,0 +1,10 @@
class CreateOrganizations < ActiveRecord::Migration
def change
create_table :organizations do |t|
t.belongs_to :user, index: true, foreign_key: true
t.string :name, limit: 80
t.datetime :verified_at
t.datetime :rejected_at
end
end
end

View File

@@ -0,0 +1,5 @@
class AddPhoneNumberToUsers < ActiveRecord::Migration
def change
add_column :users, :phone_number, :string, limit: 30
end
end