t.string :secret, :limit => 50
t.integer :user_id
- t.timestamps
+ t.timestamps :null => true
end
add_index :client_applications, :key, :unique => true
t.string :token, :limit => 50
t.string :secret, :limit => 50
t.timestamp :authorized_at, :invalidated_at
- t.timestamps
+ t.timestamps :null => true
end
add_index :oauth_tokens, :token, :unique => true
t.string :nonce
t.integer :timestamp
- t.timestamps
+ t.timestamps :null => true
end
add_index :oauth_nonces, [:nonce, :timestamp], :unique => true
end
t.column :user_id, :bigint, :null => false
t.column :role, :user_role_enum, :null => false
- t.timestamps
+ t.timestamps :null => true
end
User.where(:administrator => true).each do |user|
t.column :needs_view, :boolean, :null => false, :default => false
t.column :revoker_id, :bigint
- t.timestamps
+ t.timestamps :null => true
end
add_foreign_key :user_blocks, :users, :name => "user_blocks_user_id_fkey"