Permalink
Browse files

removed duplicate migrations

  • Loading branch information...
Gazler committed Apr 12, 2012
1 parent 30b10ea commit ecd002abbbc9572bf00da210534b4249bf68bddf
@@ -1,28 +0,0 @@
-class DeviseCreateUsers < ActiveRecord::Migration
- def self.up
- create_table(:users) do |t|
- t.database_authenticatable :null => false
- t.recoverable
- t.rememberable
- t.trackable
-
- # t.encryptable
- # t.confirmable
- # t.lockable :lock_strategy => :failed_attempts, :unlock_strategy => :both
- # t.token_authenticatable
-
-
- t.timestamps
- end
-
- add_index :users, :email, :unique => true
- add_index :users, :reset_password_token, :unique => true
- # add_index :users, :confirmation_token, :unique => true
- # add_index :users, :unlock_token, :unique => true
- # add_index :users, :authentication_token, :unique => true
- end
-
- def self.down
- drop_table :users
- end
-end
@@ -1,47 +0,0 @@
-class CreateOauthTables < ActiveRecord::Migration
- def self.up
- create_table :client_applications do |t|
- t.string :name
- t.string :url
- t.string :support_url
- t.string :callback_url
- t.string :key, :limit => 40
- t.string :secret, :limit => 40
- t.integer :user_id
-
- t.timestamps
- end
- add_index :client_applications, :key, :unique => true
-
- create_table :oauth_tokens do |t|
- t.integer :user_id
- t.string :type, :limit => 20
- t.integer :client_application_id
- t.string :token, :limit => 40
- t.string :secret, :limit => 40
- t.string :callback_url
- t.string :verifier, :limit => 20
- t.string :scope
- t.timestamp :authorized_at, :invalidated_at, :valid_to
- t.timestamps
- end
-
- add_index :oauth_tokens, :token, :unique => true
-
- create_table :oauth_nonces do |t|
- t.string :nonce
- t.integer :timestamp
-
- t.timestamps
- end
- add_index :oauth_nonces,[:nonce, :timestamp], :unique => true
-
- end
-
- def self.down
- drop_table :client_applications
- drop_table :oauth_tokens
- drop_table :oauth_nonces
- end
-
-end
@@ -1,28 +0,0 @@
-class DeviseCreateUsers < ActiveRecord::Migration
- def self.up
- create_table(:users) do |t|
- t.database_authenticatable :null => false
- t.recoverable
- t.rememberable
- t.trackable
-
- # t.encryptable
- # t.confirmable
- # t.lockable :lock_strategy => :failed_attempts, :unlock_strategy => :both
- # t.token_authenticatable
-
-
- t.timestamps
- end
-
- add_index :users, :email, :unique => true
- add_index :users, :reset_password_token, :unique => true
- # add_index :users, :confirmation_token, :unique => true
- # add_index :users, :unlock_token, :unique => true
- # add_index :users, :authentication_token, :unique => true
- end
-
- def self.down
- drop_table :users
- end
-end
@@ -1,47 +0,0 @@
-class CreateOauthTables < ActiveRecord::Migration
- def self.up
- create_table :client_applications do |t|
- t.string :name
- t.string :url
- t.string :support_url
- t.string :callback_url
- t.string :key, :limit => 40
- t.string :secret, :limit => 40
- t.integer :user_id
-
- t.timestamps
- end
- add_index :client_applications, :key, :unique => true
-
- create_table :oauth_tokens do |t|
- t.integer :user_id
- t.string :type, :limit => 20
- t.integer :client_application_id
- t.string :token, :limit => 40
- t.string :secret, :limit => 40
- t.string :callback_url
- t.string :verifier, :limit => 20
- t.string :scope
- t.timestamp :authorized_at, :invalidated_at, :valid_to
- t.timestamps
- end
-
- add_index :oauth_tokens, :token, :unique => true
-
- create_table :oauth_nonces do |t|
- t.string :nonce
- t.integer :timestamp
-
- t.timestamps
- end
- add_index :oauth_nonces,[:nonce, :timestamp], :unique => true
-
- end
-
- def self.down
- drop_table :client_applications
- drop_table :oauth_tokens
- drop_table :oauth_nonces
- end
-
-end

0 comments on commit ecd002a

Please sign in to comment.