removed extra migrate files
This commit is contained in:
parent
5181c91aa7
commit
fb4da722ab
9 changed files with 1 additions and 142 deletions
|
@ -399,7 +399,7 @@ font-family: 'LatoLight';
|
|||
background: #FFF;
|
||||
border-radius:5px;
|
||||
box-shadow: 6px 6px 8px rgba(0,0,0,0.4);
|
||||
margin:16px;
|
||||
margin:16px 16px 16px 19px;
|
||||
}
|
||||
|
||||
.mapCard {
|
||||
|
|
|
@ -1,17 +0,0 @@
|
|||
class CreateUsers < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :users do |t|
|
||||
t.string :name
|
||||
t.string :email
|
||||
t.text :settings
|
||||
t.string :code, :limit => 8
|
||||
t.string :joinedwithcode, :limit => 8
|
||||
t.string :crypted_password
|
||||
t.string :password_salt
|
||||
t.string :persistence_token
|
||||
t.string :perishable_token
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
|
@ -1,15 +0,0 @@
|
|||
class CreateSynapses < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :synapses do |t|
|
||||
t.text :desc
|
||||
t.text :category
|
||||
t.text :weight
|
||||
t.text :permission
|
||||
t.integer :node1_id
|
||||
t.integer :node2_id
|
||||
t.integer :user_id
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
|
@ -1,12 +0,0 @@
|
|||
class CreateMaps < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :maps do |t|
|
||||
t.text :name
|
||||
t.boolean :arranged
|
||||
t.text :desc
|
||||
t.text :permission
|
||||
t.integer :user_id
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
|
@ -1,14 +0,0 @@
|
|||
class CreateMappings < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :mappings do |t|
|
||||
t.text :category
|
||||
t.integer :xloc
|
||||
t.integer :yloc
|
||||
t.integer :topic_id
|
||||
t.integer :synapse_id
|
||||
t.integer :map_id
|
||||
t.integer :user_id
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
|
@ -1,13 +0,0 @@
|
|||
class CreateTopics < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :topics do |t|
|
||||
t.text :name
|
||||
t.text :desc
|
||||
t.text :link
|
||||
t.text :permission
|
||||
t.integer :user_id
|
||||
t.integer :metacode_id
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
|
@ -1,10 +0,0 @@
|
|||
class CreateMetacodes < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :metacodes do |t|
|
||||
t.text :name
|
||||
t.string :icon
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
|
@ -1,55 +0,0 @@
|
|||
class AddDevise < ActiveRecord::Migration
|
||||
def up
|
||||
### handcode devise columns
|
||||
|
||||
# database authenticatable
|
||||
add_column :users, :encrypted_password, :string, :null => nil, :limit => 128, :default => ""
|
||||
|
||||
# encryptable
|
||||
#add_column :users, :password_salt, :string, :null => nil
|
||||
|
||||
# rememberable
|
||||
add_column :users, :remember_token, :string
|
||||
add_column :users, :remember_created_at, :datetime
|
||||
|
||||
# confirmable
|
||||
#add_column :users, :confirmation_token, :string
|
||||
#add_column :users, :confirmed_at, :datetime
|
||||
#add_column :users, :confirmation_sent_at, :datetime
|
||||
|
||||
# recoverable
|
||||
add_column :users, :reset_password_token, :string
|
||||
|
||||
# trackable
|
||||
add_column :users, :last_sign_in_at, :datetime
|
||||
add_column :users, :last_sign_in_ip, :string
|
||||
add_column :users,:sign_in_count, :integer, :default => 0
|
||||
add_column :users,:current_sign_in_at, :datetime
|
||||
add_column :users,:current_sign_in_ip, :string
|
||||
|
||||
#add_index :users, :confirmation_token, :unique => true for confirmable
|
||||
add_index :users, :reset_password_token, :unique => true
|
||||
|
||||
end
|
||||
|
||||
def down
|
||||
#remove_index :users, :confirmation_token
|
||||
remove_index :users, :reset_password_token
|
||||
|
||||
remove_column :users,"password_salt"
|
||||
#remove_column :users,"confirmation_token"
|
||||
#remove_column :users,"confirmed_at"
|
||||
#remove_column :users,"confirmation_sent_at"
|
||||
remove_column :users,"reset_password_token"
|
||||
remove_column :users,"remember_token"
|
||||
remove_column :users,"remember_created_at"
|
||||
remove_column :users,"sign_in_count"
|
||||
remove_column :users,"current_sign_in_at"
|
||||
remove_column :users,"current_sign_in_ip"
|
||||
remove_column :users,"last_sign_in_at"
|
||||
remove_column :users,"last_sign_in_ip"
|
||||
remove_column :users,"encrypted_password"
|
||||
|
||||
end
|
||||
|
||||
end
|
|
@ -1,5 +0,0 @@
|
|||
class AddPasswordResetToDevise < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :users, :reset_password_sent_at, :datetime
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue